ImageGear for C and C++ on Linux v20.0 - Updated
IG_util_colorspace_is_valid
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Utility Functions > IG_util_colorspace_is_valid

This function checks whether ImageGear supports the color space identified by the color space constant.

Declaration:

 
Copy Code
AT_BOOL ACCUAPI IG_util_colorspace_is_valid(
        enumIGColorSpaceIDs colorSpace
);

Arguments:

Name Type Description
colorSpace enumIGColorSpaceIDs Color space ID.

Return Value:

Returns TRUE, if the color space is supported; FALSE otherwise.

Supported Raster Image Formats:

This function does not process image pixels.

Example:

 
Copy Code
enumIGColorSpaceIDs colorSpace;
/* Invalid color space - can't have non-premult and premult */
colorSpace = IG_COLOR_SPACE_ID_RGBA | IG_COLOR_SPACE_ID_P;
AT_BOOL bValid;         /* Is the color space valid? */
bValid = IG_util_colorspace_is_valid(colorSpace);
/* bValid is FALSE */
Is this page helpful?
Yes No
Thanks for your feedback.