This function returns whether or not the color space contains an alpha channel (either pre-multiplied or not pre-multiplied).
Copy Code
|
|
---|---|
AT_BOOL ACCUAPI IG_util_colorspace_contains_alpha( enumIGColorSpaceIDs colorSpace ); |
Name | Type | Description |
---|---|---|
colorSpace | enumIGColorSpaceIDs | Color space ID. |
Returns TRUE if the color space contains an alpha channel; FALSE otherwise.
This function does not process image pixels.
Copy Code
|
|
---|---|
enumIGColorSpaceIDs colorSpace = IG_COLOR_SPACE_ID_RGBA; AT_BOOL bAlpha; /* Does the color space have alpha? */ bAlpha = IG_util_colorspace_contains_alpha(colorSpace); /* bAlpha is TRUE */ |