Carbon


CMProfileElementExists

Header: CMApplication.h Carbon status: Supported

Tests whether the specified profile contains a specific element based on the element’s tag signature.

CMError CMProfileElementExists (
    CMProfileRef prof, 
    OSType tag, 
    Boolean *found
);
Parameter descriptions
prof

A profile reference of type CMProfileRef that specifies the profile to examine.

tag

The tag signature (for example, ‘A2B0’, or constant cmAToB0Tag) for the element in question. For a complete list of the tag signatures a profile may contain, including a description of each tag, refer to the International Color Consortium Profile Format Specification. The signatures for profile tags are defined in the CMICCProfile.h header file.

found

A pointer to a flag for whether the element was found. On return, the flag has the value true if the profile contains the element or false if it does not.

DISCUSSION

You cannot use this function to test whether certain data in the CM2Header profile header exists. Instead, you must call the function CMGetProfileHeader to copy the entire profile header and read its contents.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when ColorSync 2.0 or later is present.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)