0

I got an image I want to mask on the fly. The mask is basically shaped like a part-circle and changes in volume from time to time. Therefor I need to create an in-memory image, draw the mask circle stuff to it and do the masking on the original image like described in How to Mask an UIImageView.

The thing is that I got no idea how to create an in-memory image I may use for masking and I can apply basic drawing opperations on.t

Community
  • 1
  • 1

1 Answers1

0

If your mask is only a semi-circle, it might be easier to create a clipping path with CGContext* calls and draw your image as a CGImage with the clipping path applied. See the documentation for CGContextClip() for details.

user1118321
  • 25,567
  • 4
  • 55
  • 86