How to smooth the edge of a zig-zag line?

Posted by Horace Ho on Stack Overflow See other posts from Stack Overflow or by Horace Ho
Published on 2010-05-10T10:39:02Z Indexed on 2010/05/10 10:44 UTC
Read the original article Hit count: 241

Filed under:
|
|

Currently I draw a zig-zap line by CGContextMoveToPoint, CGContextAddLineToPoint, and CGContextStrokePath, following touchesMoved events. How can I smooth the edges of the line? Such that when the user draw a circle-like shape, the circle can be more round'ed. The GLPaint example use OpenGL, is that the only way to do it?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about core-graphics