ImageGear for C and C++ on Windows v20.5 - Updated
IG_util_colorspace_contains_extra
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Utility Functions > IG_util_colorspace_contains_extra

This function returns whether or not the color space contains extra channels.

Declaration:

 
Copy Code
AT_BOOL ACCUAPI IG_util_colorspace_contains_extra(
        enumIGColorSpaceIDs colorSpace
);

Arguments:

Name Type Description
colorSpace enumIGColorSpaceIDs Color space ID.

Return Value:

Returns TRUE if the color space contains extra channels; FALSE otherwise.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

None

Example:

 
Copy Code
enumIGColorSpaceIDs colorSpace = IG_COLOR_SPACE_ID_RGBAEx;
AT_BOOL bExtra; /* Does the color space have extra channels? */
bExtra = IG_util_colorspace_contains_extra(colorSpace);
/* bExtra is TRUE */
Is this page helpful?
Yes No
Thanks for your feedback.