1XcmsConvertColors(3)            XLIB FUNCTIONS            XcmsConvertColors(3)
2
3
4

NAME

6       XcmsConvertColors - convert CCC color specifications
7

SYNTAX

9       Status  XcmsConvertColors(XcmsCCC  ccc,  XcmsColor colors_in_out[], un‐
10              signed int ncolors, XcmsColorFormat target_format, Bool compres‐
11              sion_flags_return[]);
12

ARGUMENTS

14       ccc       Specifies  the CCC.  If Conversion is between device-indepen‐
15                 dent color spaces only (for example, TekHVC to  CIELuv),  the
16                 CCC is necessary only to specify the Client White Point.
17
18       colors_in_out
19                 Specifies  an  array  of color specifications.  Pixel members
20                 are ignored and remain unchanged upon return.
21
22       compression_flags_return
23                 Returns an array of  Boolean  values  indicating  compression
24                 status.   If  a non-NULL pointer is supplied, each element of
25                 the array is set to True if the corresponding color was  com‐
26                 pressed  and  False  otherwise.  Pass NULL if the compression
27                 status is not useful.
28
29       ncolors   Specifies the number of XcmsColor structures  in  the  color-
30                 specification array.
31
32       target_format
33                 Specifies the target color specification format.
34

DESCRIPTION

36       The XcmsConvertColors function converts the color specifications in the
37       specified array of XcmsColor structures from their current format to  a
38       single  target  format, using the specified CCC.  When the return value
39       is XcmsFailure, the contents of the color specification array are  left
40       unchanged.
41
42       The array may contain a mixture of color specification formats (for ex‐
43       ample, 3 CIE XYZ, 2 CIE Luv, and so on).  When the array contains  both
44       device-independent  and  device-dependent  color specifications and the
45       target_format argument specifies a device-dependent format  (for  exam‐
46       ple,  XcmsRGBiFormat,  XcmsRGBFormat), all specifications are converted
47       to CIE XYZ format and then to the target device-dependent format.
48

SEE ALSO

50       DisplayOfCCC(3), XcmsCCCOfColormap(3),  XcmsCreateCCC(3),  XcmsDefault‐
51       CCC(3), XcmsSetWhitePoint(3)
52       Xlib - C Language X Interface
53
54
55
56X Version 11                     libX11 1.7.0             XcmsConvertColors(3)
Impressum