XcmsAddColorSpace()XcmsAddColorSpace()NameXcmsAddColorSpace – 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.
DescriptionXcmsAddColorSpace() makes a device-independent color space (actually an
XcmsColorSpace structure) accessible by the color management system.
Because format values for unregistered color spaces are assigned at
run-time, they should be treated as private to the client. If refer‐
ences to an unregistered color space must be made outside the client
(for example, storing color specifications in a file using the unregis‐
tered 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 man‐
agement system, XcmsAddColorSpace() returns XcmsSuccess.
Note that added XcmsColorSpace structures must be retained for refer‐
ence by Xlib.
Structures
Refer to the XcmsColorSpace reference page.
See AlsoXcmsColorSpace().
Xlib - Device-independent Color XcmsAddColorSpace()