XQueryColoA man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

XQueryColor()							 XQueryColor()

Name
  XQueryColor  –  obtain  the RGB values and flags for a specified color‐
  cell.

Synopsis
  XQueryColor(display, colormap, def_in_out)
	Display *display;
	Colormap colormap;
	XColor *def_in_out;

Arguments
  display   Specifies  a  connection  to  an  X	 server;  returned   from
	    XOpenDisplay().

  colormap  Specifies  the  ID of the colormap from which RGB values will
	    be retrieved.

  def_in_out
	    Specifies the pixel value and returns  the	RGB  contents  of
	    that colorcell.

Description
  XQueryColor()	 returns the RGB values in colormap colormap for the col‐
  orcell corresponding to the pixel value specified in the  pixel  member
  of the XColor structure def_in_out.  The RGB values are returned in the
  red, green, and blue members of that structure, and the flags member of
  that	structure  is  set  to	(DoRed	  DoGreen    DoBlue).  The values
  returned for an unallocated entry are undefined.

  For more information, see Volume One, Chapter 7, Color.

Structures
     typedef struct {
	 unsigned long pixel;
	 unsigned short red, green, blue;
	 char flags;	    /* DoRed, DoGreen, DoBlue */
	 char pad;
     } XColor;

Errors
  BadColor  Invalid colormap.

  BadValue  Pixel not valid index into colormap.

See Also
  XBlackPixel(), XWhitePixel(), XAllocColor(),	XAllocColorCells(),  XAl‐
  locColorPlanes(),  XAllocNamedColor(),  XFreeColors(),  XLookupColor(),
  XParseColor(), XQueryColors(), XStoreColor(),	 XStoreColors(),  XStore‐
  NamedColor().

Xlib - Color Cells						 XQueryColor()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net