![]() |
CMSetProfileElement |
||||
Header: | CMApplication.h | Carbon status: | Supported | |
Sets or replaces the element data for a specific tag in the specified profile.
CMError CMSetProfileElement ( CMProfileRef prof, OSType tag, UInt32 elementSize, void *elementData );
A profile reference of type CMProfileRef to the profile containing the tag for which the element data is set.
The tag signature for the element whose data is set. 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.
The size in bytes of the element data set.
A pointer to the buffer containing the element data to transfer to the profile.
The CMSetProfileElement function replaces existing element data if an element with the specified tag is already present in the profile. Otherwise, it sets the element data for a new tag. Your application is responsible for allocating memory for the buffer to hold the data to transfer.
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)