Unless you’re a really serious CoreGraphics expert, there is almost certainly something to be learned here:
5 ways to draw a 2D shape with a hole in CoreGraphics
Continue Reading →In this post, I look at 5 different ways that you can draw a very simple shape: a square with a triangular hole cut out of the center. In a drawing environment like CoreGraphics which offers double buffering, winding count path filling, even-odd path filling and clipping regions, there’s no single answer. An iPhone sample project is provided containing the code but all drawing functions are identical on the Mac…
20
MAY
MAY
0
Share