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/pgargb.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/pgargb.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/pgargb.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/pgargb.html on line 8

PgARGB()

Convert alpha, red, green, and blue values to composite color format

Synopsis:

PgColor_t PgARGB( int A,
                  int R,
                  int G,
                  int B );

Arguments:

A
The alpha value.
R
The red value.
G
The green value.
B
The blue value.

Library:

ph

Description:

This macro converts alpha, red, green, and blue values into a composite color value (of type PgColor_t). The values for alpha, red, green, and blue range from 0 to 255. If you set the red, green, and blue values to 0, the color is black; if you set them to 255, the color is white. The meaning of the alpha value depends on the alpha model that you're using.


Note: This macro doesn't check the color model currently in use, and gives undefined results if you're not using the Pg_CM_ARGB model.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgAlphaValue(), PgBlueValue(), PgColor_t, PgGreenValue(), PgRedValue(), PgRGB(), PgSetFillColor(), PgSetStrokeColor(), PgSetTextColor()

Color and Alpha Blending Support 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/pgargb.html on line 139

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/pgargb.html on line 139