I have an image that I want to turn into a button. I want to draw a rounded rectangle on top of the image. I want to then be able to see the image inside the button, and outside of the button, I want transparent pixels.
I just can't seem to figure out how to create a mask that can turn transparent what is behind parts of it, and show through the rest.
I have a feeling that this is incredibly simple to do, if you happen to be a regular Photoshop user.
Can someone please enlighten me? Thanks!
2 Answers
You cannot "fill" an area with transparent pixels if you have several other layers below it. What you could do is merge the layers you need in a new layer on top and hide all the layers below that one. Then use the mask to hide the section of the layer you want transparent.
In short:
1. Apply Image in a new layer (or merge to new layer)
2. Hide all the other layers below the top one
3. Add mask, hide the section you want transparent
To add a mask, select the right layer and draw a selection. Then go to Layer > Layer Mask > Reveal Selection.
This will hide the parts of the layer that are not selected.
Sounds like you just want to invert the mask. Ctrl+I in pretty much any Windows photo app, so presumably Applekey (command?)+I in OSX.
5