XQueryColor
Syntax
XQueryColor(display, colormap, def_in_out)
Display *display;
Colormap colormap;
XColor *def_in_out;
Arguments
display
| Specifies the connection to the X server.
|
colormap
| Specifies the colormap.
|
def_in_out
| Specifies and returns the RGB values for the pixel specified in the structure.
|
Description
The
XQueryColor()
function returns the current RGB value for the pixel in the
XColor
structure and sets the
DoRed,
DoGreen,
and
DoBlue
flags.
XQueryColor()
can generate
BadColor
and
BadValue
errors.
Diagnostics
BadColor
| A value for a Colormap argument does not name a
defined Colormap.
|
BadValue
| 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.
|
See also
XAllocColor(),
XCreateColormap(),
XLookupColor(),
XParseColor(),
XQueryColors(),
XStoreColors(),
"
Modifying and Querying Colormap Cells".
Christophe Tronche, [email protected]