How to apply a texture to a quad

I tried to do the reverse of this but without success.