This function checks whether ImageGear supports the color space identified by the color space constant.
Copy Code
|
|
---|---|
AT_BOOL ACCUAPI IG_util_colorspace_is_valid( enumIGColorSpaceIDs colorSpace ); |
Name | Type | Description |
---|---|---|
colorSpace | enumIGColorSpaceIDs | Color space ID. |
Returns TRUE, if the color space is supported; FALSE otherwise.
This function does not process image pixels.
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 */ |