Say I have an image of a picturesque landscape. A rectangle, say 300x200
in dimensions.
How would I go about masking a square of say, 200x200
of the image with rounded corners into a UIImageView
I could then present to the user?
I see tons of examples such as this question where they go over how to use a UIImage
as the mask, but I just need a simple shape (a rounded square).
How would I go about accomplishing a simple mask like this without a UIImage
?