Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
QNX Documentation Library
PgAlphaValue

PgAlphaValue

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

PgAlphaValue()

Extract the alpha component from a color value

Synopsis:

int PgAlphaValue( PgColor_t color );

Arguments:

color
The composite color, of type PgColor_t, that you want to get the alpha component of.

Library:

ph

Description:

This macro extracts the alpha color component from a composite color value. The result is between 0 and 255.


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:

PgARGB(), PgBlueValue(), PgCMY(), PgColor_t, PgGreenValue(), PgHSV(), PgRedValue(), PgRGB(), PgSetFillColor(), PgSetFillDither()

"Color" and "Alpha Blending Support" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide