Version: 1.0

Posted: 2007-09-27

Build Requirements: Mac OS X 10.4, Xcode 2.4

Runtime Requirements: Mac OS X 10.4

View Source Code:

Download Sample (“MassiveImage.zip”, 48.6K)
Download Sample (“MassiveImage.dmg”, 98.3K)



Description

Shows how to use a CGDataProvider to perform just in time delivery of image data. This technique is used in this sample to avoid having all of the data for an image in memory when using Image IO to save it to disk. This technique could be used in similar situations to reduce the memory demands of large images.

Document Revision History

Date Notes
2007-09-27Shows how to use a CGDataProvider to save a very large image with Image IO

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.