ImageGear Professional for Linux
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.

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 */

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback