XcmsAllocColor 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]

XcmsAllocColor()					      XcmsAllocColor()

Name
  XcmsAllocColor  –  allocate  a color specified in device-independent or
  device-dependent form.

Synopsis
  Status XcmsAllocColor(display, colormap, color_in_out, result_format)
	Display *display;
	Colormap colormap;
	XcmsColor *color_in_out;
	XcmsColorFormat result_format;

Arguments
  display   Specifies the connection to the X server.

  colormap  Specifies the colormap.

  color_in_out
	    Specifies the color to allocate and	 returns  the  pixel  and
	    color that is actually used in the colormap.

  result_format
	    Specifies  the  desired  color  format for the returned color
	    specification.

Returns
  Zero on failure, non-zero on success.

Availability
  Release 5 and later.

Description
  The XcmsAllocColor() function is similar to  XAllocColor()  except  the
  color	 can be specified in any format supported by the color management
  system (e.g., CIEXYZ,	 CIELUV,  RGB).	  The  XcmsAllocColor()	 function
  ultimately calls XAllocColor() to allocate a read-only color cell (col‐
  ormap entry) with the specified color.  XcmsAllocColor() first converts
  the  color  specified	 to  an RGB value and then passes this to XAlloc‐
  Color.  XcmsAllocColor() returns the pixel value of the color cell  and
  the color specification actually allocated.  This returned color speci‐
  fication is the result of converting the RGB value returned by  XAlloc‐
  Color()  into	 the  format specified by the result_format argument.  If
  there is no interest in a  returned  color  specification,  unnecessary
  computation  can  be bypassed if result_format is set to XcmsRGBFormat.
  If this routine returns XcmsFailure, the color_in_out color  specifica‐
  tion is left unchanged.

Structures
  The XcmsColor and XcmsColorFormat structures are shown on the XcmsColor
  reference page.

Errors
  BadColor  The colormap argument does not name a defined Colormap.

See Also
  XcmsAllocNamedColor(), XcmsLookupColor(), XcmsQueryColor(),  XcmsQuery‐
  Colors(), XcmsStoreNamedColor.

Xlib - Device-independent Color				      XcmsAllocColor()
[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