Masking with an image in iOS?

Instead of subclassing or overriding drawing functions, I chose to overlay the images with an image that had transparency in the viewable portion. I.e. , if my 'surface' was an image of a parchment, and I aimed to draw a bunch of images on it.

I would have the parchment image, then a container UIView for any images to be put on that parchment, then a masking image over top of that which was the original parchment image but with the parchment itself converted instead to full transparency, while the surrounding area is left exactly as the background the parchment is on (then all other UI widgets over top of that).

Instead of subclassing or overriding drawing functions, I chose to overlay the images with an image that had transparency in the viewable portion. I.e. , if my 'surface' was an image of a parchment, and I aimed to draw a bunch of images on it.

I would have the parchment image, then a container UIView for any images to be put on that parchment, then a masking image over top of that which was the original parchment image but with the parchment itself converted instead to full transparency, while the surrounding area is left exactly as the background the parchment is on (then all other UI widgets over top of that). This seems a viable solution in all cases except if one were to need some image to visually animate around and behind the parchment (not my case).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions