📄 xcmsconvertcolors.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XcmsConvertColors</TITLE></HEAD><BODY><H1 ALIGN=center>XcmsConvertColors</H1><H2>Syntax</H2><!.IN "Color conversion"><!.IN "Color" "conversion"><!.IN "XcmsConvertColors" "" "@DEF@"><CODE><PRE><B><A HREF="conversion-contexts-and-gamut-mapping.html#cmsStatus">Status</A></B> XcmsConvertColors(<B>ccc</B>, <B>colors_in_out</B>, <B>ncolors</B>, <B>target_format</B>, <B>compression_flags_return</B>) <A HREF="CCC/macros.html">XcmsCCC</A> <B>ccc</B>; <A HREF="structures.html#XcmsColor">XcmsColor</A> <B>colors_in_out</B>[]; unsigned int <B>ncolors</B>; <A HREF="structures.html#XcmsColor">XcmsColorFormat</A> <B>target_format</B>; Bool <B>compression_flags_return</B>[];</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>ccc</B><TD> Specifies the <A HREF="conversion-contexts-and-gamut-mapping.html">CCC</A>.If conversion is between device-independent color spaces only(for example, TekHVC to CIELuv),the <A HREF="conversion-contexts-and-gamut-mapping.html">CCC</A> is necessary only to specify the Client White Point.<TR><TD> <B>colors_in_out</B><TD> Specifies an array of color specifications.Pixel members are ignored and remain unchanged upon return.<TR><TD> <B>ncolors</B><TD> Specifies the number of <A HREF="structures.html#XcmsColor">XcmsColor</A>structures in the color specification array.<TR><TD> <B>target_format</B><TD> Specifies the target color specification format.<TR><TD> <B>compression_flags_return</B><TD> Returns an array of Boolean values indicating compression status.If a non-NULL pointer is supplied,each element of the array is set to<B>True</B>if the corresponding color was compressed and<B>False</B>otherwise.Pass NULL if the compression status is not useful.</TABLE><H2>Description</H2>The<B>XcmsConvertColors()</B>function converts the color specifications in the specified array of<A HREF="structures.html#XcmsColor">XcmsColor</A>structures from their current format to a single target format,using the specified CCC.When the return value is<B><A HREF="conversion-contexts-and-gamut-mapping.html#cmsStatus">XcmsFailure</A></B> ,the contents of the color specification array are left unchanged.<P>The array may contain a mixture of color specification formats(for example, 3 CIE XYZ, 2 CIE Luv, and so on).When the array contains both device-independent anddevice-dependent color specifications and the target_format argument specifiesa device-dependent format (for example,<B><A HREF="structures.html#XcmsRGBFormat">XcmsRGBiFormat</A></B>,<B><A HREF="structures.html#XcmsRGBFormat">XcmsRGBFormat</A></B>),all specifications are converted to CIE XYZ format and then to the targetdevice-dependent format.<H2>See also</H2><B><A HREF="CCC/macros.html#DisplayOfCCC">DisplayOfCCC()</A></B>,<B><A HREF="CCC/XcmsCCCOfColormap.html">XcmsCCCofColormap()</A></B>,<B><A HREF="CCC/XcmsCreateCCC.html">XcmsCreateCCC()</A></B>,<B><A HREF="CCC/XcmsDefaultCCC.html">XcmsDefaultCCC()</A></B>,<B><A HREF="CCC/XcmsSetWhitePoint.html">XcmsSetWhitePoint()</A></B>,"<A HREF="converting-between-color-spaces.html">Converting Between Color Spaces</A>".<HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -