XcmsAddColorSpace() XcmsAddColorSpace()
Name
XcmsAddColorSpace - add a device-independent color space.
Synopsis
Status XcmsAddColorSpace(color_space)
XcmsColorSpace *color_space;
Arguments
color_space
Specifies the device-independent color space to add.
Returns
Zero on failure, non-zero on success.
Availability
Release 5 and later.
Description
XcmsAddColorSpace() makes a device-independent color space (actually an XcmsColorSpace structure) accessible by the color management sys-
tem. Because format values for unregistered color spaces are assigned at run-time, they should be treated as private to the client. If
references to an unregistered color space must be made outside the client (for example, storing color specifications in a file using the
unregistered color space), then reference should be made by color space prefix (see XcmsFormatOfPrefix() and XcmsPrefixOfFormat()).
If the XcmsColorSpace structure is already accessible in the color management system, XcmsAddColorSpace() returns XcmsSuccess.
Note that added XcmsColorSpace structures must be retained for reference by Xlib.
Structures
Refer to the XcmsColorSpace reference page.
See Also
XcmsColorSpace().
Xlib - Device-independent Color XcmsAddColorSpace()