PATHMac OS 8 and 9 Developer Documentation > Mutlimedia and Graphics > ColorSync Manager >

Managing Color With ColorSync


Color Matching an Image to Be Printed

The ColorSync Manager provides QuickDraw-specific and general purpose color-matching functions, as described in When Color Matching Occurs . Printer device drivers usually perform color matching using the general purpose ColorSync Manager functions to match all QuickDraw operations as they pass through the bottleneck routines of the printing grafport.

Note

The general-purpose functions can perform all the operations performed by the QuickDraw-specific functions, but the reverse is not true.

When the stream of QuickDraw data sent to your printer device driver contains a profile embedded using picture comments, your driver should extract the embedded profile using the ColorSync Manager's CMUnflattenProfile function. After you extract the profile and open a reference to it, you should create a new color world based on the extracted profile and a profile for your printer. For information on how to extract an embedded profile, see Extracting Profiles Embedded in Pictures . Creating a Color World to Use With the General Purpose Functions describes how to create a color world.

If the QuickDraw data stream does not contain embedded profiles, your driver should use the system profile as the source profile in creating the color world.

You should then match subsequent QuickDraw operations using the color world before sending them to your printe r. See Setting Default Profiles for information on how the user and how your code can set default profiles.


© 1988-1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)