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

CGContextAddLineToPoint, CGContextAddCurveToPoint, et. al.

Q: Why doesn't CGContextAddLineToPoint draw anything?

A: The CGContextAddXYZ APIs don't draw anything in and of themselves. Instead, they add the specified graphic primitive to the current path. In order to see the results, you must call CGContextStrokePath, or one of the other path drawing functions.

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