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:
Return Value:
Returns TRUE, if the color space is supported; FALSE otherwise.
Supported Raster Image Formats:
This function does not process image pixels.
Sample:
None
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 */
|