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

Managing Color With ColorSync


Picture Comments

Your application uses the QuickDraw PicComment function, described in Inside Macintosh: Imaging With QuickDraw , to specify picture comments for beginning or ending use of an embedded profile, turning color matching on or off, or embedding a profile identifier. The following sections describe constants you use to perform these operations:

Picture Comment Kinds for Profiles and Color Matching

IMPORTANT

Use a picture comment of kind cmEndProfile to explicitly terminate use of the currently effective embedded profile and begin use of the system profile. Otherwise, the currently effective profile remains in effect, leading to unexpected results if another picture follows that is meant to use the system profile and so isn't preceded by a profile.

enum {
    cmBeginProfile      = 220,  /* begins 1.0 profile */
    cmEndProfile        = 221,  /* ends 2.x or 1.0 profile */
    cmEnableMatching    = 222,  /* turns on color matching */
    cmDisableMatching   = 223,  /* turns off color matching */
    cmComment           = 224   /* profile or profile identifier
                                    is embedded */
};

Enumerator descriptions

cmBeginProfile
Indicates the beginning of a version 1.0 profile to embed. (To start a 2.x profile, you use cmComment .)
cmEndProfile
Signals end of the use of an embedded version 2.x or 1.0 profile.
cmEnableMatching
Turns on color matching for the ColorSync Manager. Do not nest cmEnableMatching and cmDisableMatching pairs.
cmDisableMatching
Turns off color matching for the ColorSync Manager. Do not nest cmEnableMatching and cmDisableMatching pairs. After the ColorSync Manager encounters this comment, it ignores all ColorSync-related picture comments until it encounters the next cmEnableMatching picture comment. At that point, the most recently used profile is reinstated.
cmComment
Provides information about a 2.x embedded profile or embedded profile identifier reference. This picture comment is followed by a 4-byte selector identifying what follows. Picture Comment Selectors for Embedding Profile Information describes the possible selectors.

Picture Comment Selectors for Embedding Profile Information

Constants for Embedding Profiles and Profile Identifiers


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