![]() |
Picture Comment Kinds for Profiles and Color Matching |
Header: CMApplication.h |
enum { cmBeginProfile = 220, cmEndProfile = 221, cmEnableMatching = 222, cmDisableMatching = 223, cmComment = 224 };
Indicates the beginning of a version 1.0 profile to embed. (To start a 2.x profile, you use cmComment.)
Signals end of the use of an embedded version 2.x or 1.0 profile.
Turns on color matching for the ColorSync Manager. Do not nest cmEnableMatching and cmDisableMatching pairs.
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.
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.
The ColorSync Manager defines five picture comment kinds. You use these comments to embed a profile identifier, begin or end use of an embedded profile, and enable or disable color matching within drawing code sent to an output device. The PicComment functions kind parameter specifies the kind of picture comment.
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 is not preceded by a profile.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)