Working With the StdPix Function
To allow applications to have access to compressed image data as it is displayed, a new graphics function has been added to thegrafProcsfield of the color graphics port structure (defined by theCGrafPortdata type). See Inside Macintosh: Imaging for more information about the color graphics port structure.The
StdPixfunction extends the currentgrafProcsfield to support compressed data, mattes, and matrices. The new function supports pixel maps and allows you to intercept image data in compressed form before it is decompressed and displayed. For example, you can use theStdPixfunction to collect compressed image data that is to be processed and printed. In addition, your application can call theStdPixfunction directly.The replaced
grafProcsfield is referred to in the original QuickDraw documentation as thenewProc1field. The standard handler is calledStdPix, and you obtain its address by calling QuickDraw'sSetStdCProcsroutine. Alternatively, your application can call theStdPixfunction directly, using the interface described here. Your application can intercept the low-levelgrafProcsdrawing routines just as it would any of the other routines, except that you must callSetStdCProcsto gain access to the standardgrafProcshandler.
See Inside Macintosh: Imaging for more information about the QuickDraw low-level drawing routines, the
- Note
- QuickDraw's
CopyDeepMaskfunction uses theStdPixfunction
if QuickTime is present.![]()
SetStdCProcsroutine, theQDProcsstructure, and theCopyDeepMaskroutine.To work with the control information associated with a compressed image, you can use the
SetCompressedPixMapInfoandGetCompressedPixMapInfofunctions (described on page 3-133 and page 3-135, respectively).
Subtopics
- StdPix
- SetCompressedPixMapInfo
- GetCompressedPixMapInfo