CMProfileElementExists
Tests whether the specified profile contains a specific element based on the element’s tag signature.
Declaration
CMError CMProfileElementExists (
CMProfileRef prof,
OSType tag,
Boolean *found
);Parameters
- 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 theCMICCProfile.hheader file. - found:
A pointer to a flag for whether the element was found. On return, the flag has the value
trueif the profile contains the element orfalseif it does not.
Return Value
A CMError value. See Result Codes.
Overview
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.