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

Glossary Item Box

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.

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 */
©2014. Accusoft Corporation. All Rights Reserved.