ImageGear for C and C++ on Windows v20.5 - Updated
IG_util_colorspace_is_premultiplied
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.

Declaration:

 
Copy Code
AT_BOOL ACCUAPI IG_util_colorspace_is_premultiplied(
        enumIGColorSpaceIDs colorSpace
);

Arguments:

colorSpace enumIGColorSpaceIDs Color space ID.

Return Value:

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.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Example:

 
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 */
Is this page helpful?
Yes No
Thanks for your feedback.