![]() |
PATH![]() |
![]() ![]() |
To embed a version 2.x profile or profile identifier reference in a picture destined for display on another system or on a device such as a printer, your application uses the QuickDraw
PicComment
function. The ColorSync Manager provides the function
NCMUseProfileComment
to embed picture comments. You specify a picture comment
kind
value of
cmComment
and a 4-byte selector describing the data in the picture comment. For sample code showing how to use
NCMUseProfileComment
to embed profile information, see
Embedding Profiles and Profile Identifiers
.
Because a profile may exceed QuickDraw's 32 KB size limit for a picture comment, your application can use an ordered series of picture comments to embed a large profile. Figure 7 shows how a large profile is embedded in a PICT file picture.
You can also embed a profile identifier reference in a picture. The profile identifier may refer to a previously embedded profile, so that you don't have to embed the entire profile again, or it may refer to a profile stored on disk. When you embed a profile identifier, you can change certain values for the referred-to profile, including the quality flags and rendering intent. For more information on profile identifiers, see
CMProfileIdentifier
.
The following enumeration defines the 4-byte selector values your application uses to identify the beginning and continuation of profile data and to signal the end of it.
enum {
cmBeginProfileSel = 0, /* start 2.x profile data */
cmContinueProfileSel = 1, /* continuation of 2.x data */
cmEndProfileSel = 2, /* end 2.x profile data */
cmProfileIdentifierSel = 3 /* profile identifier data */
};
NCMUseProfileComment
. For information on the format of profile identifier data, see
CMProfileIdentifier
.