Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi friends,
How do I write the reverse layer mask ?
I want to make a hollow effect.For instance, I want to dig a circle in a square, but how ?
Anybody can help? Thanks very much!
Posted
Comments
Sergey Alexandrovich Kryukov 7-Apr-15 10:04am    
Not clear.
—SA

1 solution

I found some nice tutorial for drawing from Ray Wenderlich Core Graphics Tutorial. It shows the way "how to draw". An alternative is often the use of an image.

When drawing, than the output is done from background to top. So you would first draw the rectangle and draw the circle over the rectangle. Layering is only needed In cases of high perfomance I would recommend OpenGL. I wrote a article aboutOpenGL and a follow up for Metal.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900