ImageGear Professional DLL v18.1 for Windows
IG_util_colorspace_contains_alpha
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Utility Functions > IG_util_colorspace_contains_alpha

Glossary Item Box

This function returns whether or not the color space contains an alpha channel (either pre-multiplied or not pre-multiplied).

Declaration:

  Copy Code
AT_BOOL ACCUAPI IG_util_colorspace_contains_alpha(
        enumIGColorSpaceIDs colorSpace
);

Arguments:

Name Type Description
colorSpace enumIGColorSpaceIDs Color space ID.

Return Value:

Returns TRUE if the color space contains an alpha channel; FALSE otherwise.

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 bAlpha;         /* Does the color space have alpha? */
bAlpha = IG_util_colorspace_contains_alpha(colorSpace);
/* bAlpha is TRUE */
©2014. Accusoft Corporation. All Rights Reserved.