Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“qtmultiimage.win.zip”, 2.7K)
Download Sample (“qtmultiimage.win.dmg”, 60.3K)



Description

This sample code has been updated for QuickTime 5.0 README - QTMultiImage This file contains code that illustrates how to determine whether an image file contains more than one image and how to display any of those images. This is useful for working with FlashPix files (which contain multiple resolutions of an image) and PhotoShop files (which store layers as separate images), among others. The key new functions to use are GraphicsImportGetImageCount and GraphicsImportSetImageIndex. The rest of the image-handling is done using graphics importer routines that have previously been available. This file defines a single function that prompts the user for an image file, determines how many images are contained in that file, and then displays each such image for a short period of time (2 seconds). Your application, of course, will probably want to do more interesting things with the image.

Document Revision History

Date Notes
2003-01-14Illustrates how to display any of the images in a multi-image file.

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.