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/photon/lib_ref/pg/pggetpalette.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/photon/lib_ref/pg/pggetpalette.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/photon/lib_ref/pg/pggetpalette.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/photon/lib_ref/pg/pggetpalette.html on line 8

PgGetPalette()

Query for current color palette

Synopsis:

int PgGetPalette( PgColor_t *palette );

Library:

ph

Description:

This function queries the graphics driver for the current palette. A palette is an array of _Pg_MAX_PALETTE RGB (PgColor_t) colors. The palette parameter must be a pointer to a suitably-sized array, which will be filled with the color values representing the current palette.

This function is useful for graphical image utilities such as pv, which can perform improved dithering with knowledge of the graphics palette.


Note: You must target this function at a specific card by calling PdSetTargetDevice(). PgGetPalette() blocks until the operation is complete.

Returns:

0
Successful completion.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PdSetTargetDevice(), PgColor_t

Color in the Raw Drawing and Animation chapter of the Photon Programmer's Guide


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/photon/lib_ref/pg/pggetpalette.html on line 121

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/photon/lib_ref/pg/pggetpalette.html on line 121