Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
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.
![]() |
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
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
