Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_palette_t.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_palette_t.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_palette_t.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_palette_t.html on line 8
A QNX Graphics Framework palette
#include <gf/gf.h>
typedef struct {
int ncolors;
gf_color_t *colors;
} gf_palette_t;
The gf_palette_t structure defines
a color palette associated with a surface. It contains at least the
following members:
- ncolors
- The number of colors in the colors array.
- colors
- Pointer to an array of ncolors colors, of type gf_color_t.
A gf_color_t is a generic 32-bit color argument used by the GF library. This type is assumed to be native endian, with the following components:
- red —an 8-bit value specifying red intensity, occuping byte 2 (bits 16-23).
- green — an 8-bit value specifying green intensity, occuping byte 1 (bits 8-15).
- blue — an 8-bit value specifying blue intensity, occuping the least significant byte (bits 0-7))
- alpha — and 8-bit value specifying alpha factor, where applicable. This value occupies the most signifcant byte (bits 24-31).
QNX Graphics Framework
gf_surface_attach(),
gf_surface_attach_by_sid(),
gf_surface_create(),
gf_surface_create_layer()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_palette_t.html on line 105
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_palette_t.html on line 105