Version: 1.0

Posted: 2005-06-01

Build Requirements: Tiger

Runtime Requirements: Tiger

View Source Code:

Download Sample (“QuartzLines.zip”, 21.8K)
Download Sample (“QuartzLines.dmg”, 78.8K)



Description

This sample code shows 4 different ways of drawing lines using Quartz. Each way is measured for performance. These include

drawing lines:

- as separate CGPaths

- as a single CGPath

- using the new bulk line drawing function in Tiger

- by limiting the number of lines drawn

Document Revision History

Date Notes
2005-06-01Drawing Lines using Quartz's CGPath & CGContextStrokeLineSegments functions.

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.