there is nothing on clipping in lecture 5?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "iPhone Application Development Auditors" group.
To post to this group, send email to iphone-appd...@googlegroups.com
To unsubscribe from this group, send email to iphone-appdev-aud...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/iphone-appdev-auditors?hl=en
-~----------~----~----~----~------~----~------~--~---
anybody got a poly with gradient and border??

CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path, ....)
CGPathAddLineToPoint(path, ....)
CGPathCloseSubpath(path)
And lastly, to add the path to the context
CGContextAddPath(context, path);
The path gets removed from the context with many calls (clipping, drawingPath, saving and restoring contexts from the graphics state stack), but you can keep adding it back the CGContextAddPath() function.
After determining the new clipping path, the function resets the context’s current path to an empty path.