Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
qtgraphimp
Last Revision: | Version 1.0, 2003-01-14 Illustrates how to use QuickTime's graphics importer routines to open and display image files. |
Build Requirements: | |
Runtime Requirements: | Carbon |
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.
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14