📄 xquerycolor.html
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: XQueryColor</TITLE></HEAD><BODY><H1 ALIGN=center>XQueryColor</H1><H2>Syntax</H2><!.IN "Color" "querying"><!.IN "XQueryColor" "" "@DEF@"><CODE><PRE>XQueryColor(<B>display</B>, <B>colormap</B>, <B>def_in_out</B>) <A HREF="../display/opening.html#Display">Display</A> *<B>display</B>; <A HREF="./#colormap">Colormap</A> <B>colormap</B>; <A HREF="structures.html">XColor</A> *<B>def_in_out</B>;</PRE></CODE><H2>Arguments</H2><TABLE><TR><TD> <B>display</B><TD> Specifies the connection to the X server.<TR><TD> <B>colormap</B><TD> Specifies the colormap.<TR><TD> <B>def_in_out</B><TD> Specifies and returns the RGB values for the pixel specified in the structure.</TABLE><H2>Description</H2>The<B>XQueryColor()</B>function returns the current RGB value for the pixel in the<A HREF="structures.html">XColor</A>structure and sets the<B>DoRed</B>,<B>DoGreen</B>,and<B>DoBlue</B>flags.<P><B>XQueryColor()</B>can generate<B>BadColor</B>and<B>BadValue</B> errors.<H2>Diagnostics</H2><TABLE><TR><TD><B>BadColor</B><TD> A value for a Colormap argument does not name a defined Colormap.<TR><TD><B>BadValue</B><TD> Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.</TABLE><H2>See also</H2><B><A HREF="XAllocColor.html">XAllocColor()</A></B>,<B><A HREF="XCreateColormap.html">XCreateColormap()</A></B>,<B><A HREF="XLookupColor.html">XLookupColor()</A></B>,<B><A HREF="XParseColor.html">XParseColor()</A></B>,<B><A HREF="XQueryColors.html">XQueryColors()</A></B>,<B><A HREF="XStoreColors.html">XStoreColors()</A></B>,"<A HREF="modifying-and-querying-cells.html">Modifying and Querying Colormap Cells</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 + -