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

NAME

6       XcmsConvertColors - convert CCC color specifications
7

SYNTAX

9       Status XcmsConvertColors(XcmsCCC ccc, XcmsColor colors_in_out[],
10              unsigned int ncolors, XcmsColorFormat target_format, Bool com‐
11              pression_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
43       example, 3 CIE XYZ, 2 CIE Luv, and so on).  When the array contains
44       both device-independent and device-dependent color specifications and
45       the target_format argument specifies a device-dependent format (for
46       example, XcmsRGBiFormat, XcmsRGBFormat), all specifications are con‐
47       verted to CIE XYZ format and then to the target device-dependent for‐
48       mat.
49

SEE ALSO

51       DisplayOfCCC(3X11), XcmsCCCOfColormap(3X11), XcmsCreateCCC(3X11), Xcms‐
52       DefaultCCC(3X11), XcmsSetWhitePoint(3X11)
53       Xlib - C Language X Interface
54
55
56
57X Version 11                     libX11 1.0.3          XcmsConvertColors(3X11)
Impressum