📄 modifying-and-querying-cells.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: Modifying and Querying Colormap Cells</TITLE></HEAD><BODY><H1 ALIGN=center>6.7 Modifying and Querying Colormap Cells</H1>To store an RGB value in a single colormap cell, use<B><A HREF="XStoreColor.html">XStoreColor()</A></B>.<P>To store multiple RGB values in multiple colormap cells, use<B><A HREF="XStoreColors.html">XStoreColors()</A></B>.<P>To store a color of arbitrary format in a single colormap cell, use<B><A HREF="XcmsStoreColor.html">XcmsStoreColor()</A></B>.<P>To store multiple colors of arbitrary format in multiple colormap cells, use<B><A HREF="XcmsStoreColors.html">XcmsStoreColors()</A></B>.<P>To store a color specified by name in a single colormap cell, use<B><A HREF="XStoreNamedColor.html">XStoreNamedColor()</A></B>.<P>The<B><A HREF="XQueryColor.html">XQueryColor()</A></B>and<B><A HREF="XQueryColors.html">XQueryColors()</A></B>functions take pixel values in the pixel member of<A HREF="structures.html">XColor</A>structures and store in the structures the RGB values for thosepixels from the specified colormap.The values returned for an unallocated entry are undefined.These functions also set the flags member in the<A HREF="structures.html">XColor</A>structure to all three colors.If a pixel is not a valid index into the specified colormap, a<B>BadValue</B>error results.If more than one pixel is in error,the one that gets reported is arbitrary.<P>To query the RGB value of a single colormap cell, use<B><A HREF="XQueryColor.html">XQueryColor()</A></B>.<P>To query the RGB values of multiple colormap cells, use<B><A HREF="XQueryColors.html">XQueryColors()</A></B>.<P>To query the color of a single colormap cell in an arbitrary format, use<B><A HREF="XcmsQueryColor.html">XcmsQueryColor()</A></B>.<P>To query the color of multiple colormap cells in an arbitrary format, use<B><A HREF="XcmsQueryColors.html">XcmsQueryColors()</A></B>.<H5 ALIGN=right><I>Next: <A HREF="CCC/">Color Conversion Context Functions</A></I></H5><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 + -