ImageGear Professional v18.2 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Utility Functions > IG_util_colorspace_is_premultiplied |
This function checks whether the alpha channel in the color space is pre-multiplied.
Copy Code
|
|
---|---|
AT_BOOL ACCUAPI IG_util_colorspace_is_premultiplied( enumIGColorSpaceIDs colorSpace ); |
colorSpace | enumIGColorSpaceIDs | Color space ID. |
Returns TRUE, if the alpha channel in the color space is pre-multiplied. Returns FALSE, if the alpha channel in the color space is not pre-multiplied, or the color space does not contain an alpha channel.
This function does not process image pixels.
None
Copy Code
|
|
---|---|
enumIGColorSpaceIDs colorSpace = IG_COLOR_SPACE_ID_RGBA; AT_BOOL bPremult; /* Does color space have premult. alpha? */ bPremult = IG_util_colorspace_is_premultiplied(colorSpace); /* bPremult is FALSE */ |