Mac OS X Reference Library Apple Developer Connection spyglass button

Saving the current Core Graphics Path


Q: Does CGContextSaveGState save the current path?

A: No. Core Graphics follows the PDF specification in this regard. CGContextSaveGState and CGContextRestoreGState do not save and restore the path. In order to redraw a path you must recreate it from scratch.


[Oct 02 2001]

Did this document help you? Yes It's good, but... Not helpful...