ADC Home > Reference Library > Technical Q&As > Graphics & Imaging > Quartz >

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: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.