1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
.TH "gcpSetRGBAPalette" 3 "2005-07-30" "libggigcp-1.0.x" GGI
.SH NAME
\fBgcpSetRGBAPalette\fR, \fBgcpGetRGBAPalette\fR, \fBgcpSetYUVPalette\fR, \fBgcpGetYUVPalette\fR, \fBgcpSetCMYKPalette\fR, \fBgcpGetCMYKPalette\fR, \fBgcpSetHSVPalette\fR, \fBgcpGetHSVPalette\fR, \fBgcpSetYCCPalette\fR, \fBgcpGetYCCPalette\fR : Manipulate the palette of a visual
.SH SYNOPSIS
.nb
.nf
#include <ggi/gcp.h>
int gcpGetRGBAPalette(ggi_visual_t vis,
int s,int len,gcp_RGBAcolor *cmap);
int gcpSetRGBAPalette(ggi_visual_t vis,
int s,int len,gcp_RGBAcolor *cmap);
int gcpGetYUVPalette(ggi_visual_t vis,
int s,int len,gcp_YUVcolor *cmap);
int gcpSetYUVPalette(ggi_visual_t vis,
int s,int len,gcp_YUVcolor *cmap);
int gcpGetCMYKPalette(ggi_visual_t vis,
int s,int len,gcp_CMYKcolor *cmap);
int gcpSetCMYKPalette(ggi_visual_t vis,
int s,int len,gcp_CMYKcolor *cmap);
int gcpGetHSVPalette(ggi_visual_t vis,
int s,int len,gcp_HSVcolor *cmap);
int gcpSetHSVPalette(ggi_visual_t vis,
int s,int len,gcp_HSVcolor *cmap);
int gcpGetYCCPalette(ggi_visual_t vis,
int s,int len,gcp_YCCcolor *cmap);
int gcpSetYCCPalette(ggi_visual_t vis,
int s,int len,gcp_YCCcolor *cmap);
.fi
.SH DESCRIPTION
LibGGIGCP visuals in \fBGT_PALETTE\fR mode map all pixelvalues to the
corresponding \f(CWgcp_color(3)\fR entry in the visual's palette.
\fBgcpSet*Palette\fR sets a range of palette values of length \fIlen\fR,
starting at index number \fIs\fR. The index can be
\fBGCP_PALETTE_DONTCARE\fR 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.
\fBgcpGet*Palette\fR copies the specified colors (starting from \fIs\fR, for
\fIlen\fR colors) from the visual's palette to the array pointed by
\fIcmap\fR.
.SH RETURN VALUE
\fBgcpSet*Palette\fR returns the number of the first entry changed.
\fB<0\fR indicate \f(CWggi-error(3)\fR.
\fBgcpGet*Palette\fR returns \fB0\fR for OK, otherwise an \f(CWggi-error(3)\fR
code. When called with len=0 this function will not automatically
succeed, but the return code will indicate whether there is a
readable CLUT.
.SH SEE ALSO
\f(CWgcpSetColorfulPalette(3)\fR
|