Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“qtgraphimp.zip”, 5.6K)
Download Sample (“qtgraphimp.dmg”, 63.6K)



Description

This sample code has been updated for QuickTime 5.0 README - QTGRAPHIMP This sample code illustrates how to use QuickTime's graphics importer routines to open and display image files. The graphics importer routines were introduced in QuickTime version 2.5 as a new way to draw still images. The graphics import routines (for example, GetGraphicsImporterForFile) use graphics import components (of component type 'grip') to open and perform other operations on image files. Essentially, you can use the graphics import routines to insulate your application from the nitty gritty details of image file format and compression used in the image. In this sample code, we allow the user to open an image file; then we draw it into a window on the screen. Your application, of course, will probably want to do more interesting things with the image. We also allow the user to save an image using JPEG compression.

Document Revision History

Date Notes
2003-01-14Illustrates how to use QuickTime's graphics importer routines to open and display image files.

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.