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

Managing Color With ColorSync


Element Tags and Signatures for Version 1.0 Profiles

The ICC version 2.x profile format differs from the version 1.0 profile format, and ColorSync Manager routines for updating a profile and searching for profiles do not work with version 1.0 profiles. However, your application can use version 1.0 profiles with all other ColorSync routines. For example, you can open a version 1.0 profile using the function CMOpenProfile , obtain the version 1.0 profile header using the function CMGetProfileHeader , and access version 1.0 profile elements using the function CMGetProfileElement .

To make this possible, the ColorSync Manager includes support for the version 1.0 profile header structure and synthesizes tags to allow you to access four 1.0 elements outside the version 1.0 profile header. The following enumeration defines these tags:

enum {
    cmCS1ChromTag       = 'chrm',   /* signature for XYZ chromaticities tag */
    cmCS1TRCTag         = 'trc ',   /* signature for profile tonal response curve
                                        data from associated device */
    cmCS1NameTag        = 'name',   /* signature for profile name string tag */
    cmCS1CustTag        = 'cust'    /* signature for private data for custom CMM */
};

Enumerator descriptions

cmCS1ChromTag
The tag signature for the profile chromaticities tag whose element data specifies the XYZ chromaticities for the six primary and secondary colors (red, green, blue, cyan, magenta, and yellow).
cmCS1TRCTag
The tag signature for profile tonal response curve data for the associated device.
cmCS1NameTag
The tag signature for the profile name string. This is an international string consisting of a Macintosh script code followed by a 63-byte text string identifying the profile.
cmCS1CustTag
Private data for a custom CMM.

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