Mac OS X Reference Library Apple Developer Connection spyglass button

Version: 1.0

Posted: 2005-06-01

Build Requirements: Tiger

Runtime Requirements: Tiger

View Source Code:

Download Sample Code (“QuartzCache.zip”, 195.1K)



Description

This sample code shows several caching techniques in Quartz 2D

- CGImageRef re-use and performance benefit

- Caching using a CGBitmapContext

- Caching using a CGLayerRef

- Drawing an updated CGBitmapContext

- Drawing an updated CGLayerRef

- Use of CGImageSource caching

- Implications of Flushing on overal performance

Document Revision History

Date Notes
2005-06-01Demonstrates several caching techniques using CGBitmapContext, CGImageRef re-use, CGLayerRefs, CGImageSource.
Did this document help you? Yes It's good, but... Not helpful...