Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xcmscolorspace(3) [hpux man page]

XcmsColorSpace()														  XcmsColorSpace()

Name
  XcmsColorSpace - Xcms color space structure.

Availability
  Release 5 and later.

Description
  The  XcmsColorSpace  structure contain the information necessary to convert the encoding of color specifications to other color spaces, and
  to parse a color string encoded specifically for this color space.

  The prefix member points to a string that identifies that a color strings encoding is for this particular color space.

	 <color_space>:<color_space_specific_encoding>

  For example, the prefix "cieuvy:" for the color string "CIEuvY:0.119/0.545/0.254".  Although the prefix in the color string may be  entered
  in uppercase or lowercase, all characters of the prefix specified in the XcmsColorSpace must be in lowercase.

  The  id  member  is  predefined  if  the  color  space is registered with the X Consortium; otherwise assigned at run-time (see XcmsAddCol-
  orSpace()).

  The parseString member points to the color space specific string parsing function.

  The to_CIEXYZ member is pointer to an array of functions that, when executed in sequence, will convert a XcmsColor  structure  encoded  for
  this color space to the CIEXYZ encoding.

  The  from_CIEXYZ member is pointer to an array of functions that, when executed in sequence, will convert a XcmsColor structure encoded for
  CIEXYZ to this color space's encoding.

  The inverse_flag member if set (i.e., 1) indicates that for each function in the to_CIEXYZ list,  there  is  an  inverse  function  in  the
  from_CIEXYZ  list.  Note however that the corresponding order is reversed - the inverse of the first function in to_CIEXYZ will be the last
  function in  from_CIEXYZ.

Structures
  The XcmsColorSpace structure contains:

     typedef XcmsConversionProc *XcmsFuncListPtr;

     typedef struct _XcmsColorSpace {
	 char *prefix;
	 XcmsColorFormat id;
	 XcmsParseStringProc parseString;
	 XcmsFuncListPtr to_CIEXYZ;
	 XcmsFuncListPtr from_CIEXYZ;
	 int inverse_flag;
     } XcmsColorSpace;

See Also
  XcmsAddColorSpace(), XcmsAddFunctionSet(), XcmsFunctionSet, XcmsConversionProc, XcmsParseStringProc.

Xlib - Device-independent Color 												  XcmsColorSpace()

Check Out this Related Man Page

XcmsQueryColors()														 XcmsQueryColors()

Name
  XcmsQueryColors - obtain the color specifications of the specified colorcells.

Synopsis
  Status XcmsQueryColors(display, colormap, colors_in_out, ncolors,
  result_format)
	Display *display;
	Colormap colormap;
	XcmsColor *colors_in_out[];
	unsigned int ncolors;
	XcmsColorFormat result_format;

Arguments
  display   Specifies the connection to the X server.

  colormap  Specifies the colormap.

  colors_in_out
	    Specifies  an  array of XcmsColor structures, each pixel member indicating the color cell to query.  The color specifications for
	    the color cells are returned in these structures.

  ncolors   Specifies the number of XcmsColor structures in the colors_in_out array.

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

Returns
  Zero on failure, non-zero on success.

Availability
  Release 5 and later.

Description
  XcmsQueryColors() obtains the RGB values for the colors stored in the colormap cells specified by the pixel fields of the  specified	Xcms-
  Color  structures,  and  then  converts the values to the target format specified by the result_format argument.  If a pixel is not a valid
  index into the specified colormap, a BadValue error results.	If more than one pixel is in error, the one that gets reported is arbitrary.

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

  BadValue  A specified pixel does not represent a valid color cell in the specified colormap.

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

See Also
  XcmsAllocColor(), XcmsAllocNamedColor(), XcmsStoreColor(),  XcmsStoreColors(),  XcmsStoreNamedColor,	XcmsQueryColor(),  XcmsLookupColor(),
  XAllocColor(), XAllocNamedColor(), XQueryColor(), XQueryColors(), XStoreColor(), XStoreColors().

Xlib - Device-independent Color 												 XcmsQueryColors()
Man Page