![]() |
CMProfileElementExists |
||||
Header: | CMApplication.h | Carbon status: | Supported | |
Tests whether the specified profile contains a specific element based on the elements tag signature.
CMError CMProfileElementExists ( CMProfileRef prof, OSType tag, Boolean *found );
A profile reference of type CMProfileRef that specifies the profile to examine.
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.
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.
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.
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)