carta
gcpSetCMYKPalette(3)

gcpSetCMYKPalette3

Manipulate the palette of a visual

Part of gcpSetRGBAPalette(3).

Usage

int s,int len,gcp_RGBAcolor *cmap);

int s,int len,gcp_RGBAcolor *cmap);

int s,int len,gcp_YUVcolor *cmap);

int s,int len,gcp_YUVcolor *cmap);

int s,int len,gcp_CMYKcolor *cmap);

int s,int len,gcp_CMYKcolor *cmap);

int s,int len,gcp_HSVcolor *cmap);

int s,int len,gcp_HSVcolor *cmap);

int s,int len,gcp_YCCcolor *cmap);

int s,int len,gcp_YCCcolor *cmap);

Overview

LibGGIGCP visuals in GT_PALETTE mode map all pixelvalues to the corresponding gcp_color(3) entry in the visual's palette.

gcpSet*Palette sets a range of palette values of length len, starting at index number s. The index can be GCP_PALETTE_DONTCARE to indicate that the palette can be installed anywhere in the CLUT. This allows optimized use in windowing environments (to minimize color flashing between windows) and should be used if possible.

gcpGet*Palette copies the specified colors (starting from s, for len colors) from the visual's palette to the array pointed by cmap.

Return value

gcpSet*Palette returns the number of the first entry changed. <0 indicate ggi-error(3).

gcpGet*Palette returns 0 for OK, otherwise an ggi-error(3) code. When called with len=0 this function will not automatically succeed, but the return code will indicate whether there is a readable CLUT.

History

  • Debian 6.0 (Squeeze) to Debian 5.0 (Lenny): the text shown here
  • Debian 4.0 (Etch)

From libggigcp1-dev 1.0.2+dfsg1-2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.