How to paints a transparent circle like using CGContextClearRect to draw a transparent rectangle

Posted by user177946 on Stack Overflow See other posts from Stack Overflow or by user177946
Published on 2009-09-23T17:10:37Z Indexed on 2010/04/30 4:07 UTC
Read the original article Hit count: 264

Filed under:

Hello All,

Do anyone know how I can draw a transparent circle on a CALayer just like using CGContextClearRect to draw a transparent rectangle? My requirements is that I need to draw a mask on a picture, in some cases, I need to erase it, but CGContextClearRect only allow to draw a rectangle, I wonder if there is another way to do the same thing and draw a tranparent circle.

Regards, Anto

© Stack Overflow or respective owner

Related posts about iphone