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

Drawing a Path Multiple Times

Q: Why can't I stroke or fill a path multiple times in a row?

A: In Core Graphics, all of the functions that draw, stroke, or fill a path consume it. There is no way to preserve the path or reuse it. Even CGContextSaveGState doesn't preserve the current path. The only way to draw the path again is to recreate it from scratch.

[Jul 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.