This function gets an image's color space ID.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_image_colorspace_get( HIGEAR hIGear, enumIGColorSpaceIDs* lpColorspace ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | HIGEAR handle of image. |
lpColorspace | enumIGColorSpaceIDs* | Returned color space of the image. |
Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.
All pixel formats supported by ImageGear for C and C++.
Copy Code
|
|
---|---|
AT_ERRCOUNT nErrcount; /* Number of errors on stack */ HIGEAR hImage; /* Handle of image */ enumIGColorSpaceIDs cs; /* Color space ID */ AT_BOOL bIndexed; /* Is the image indexed? */ nErrcount = IG_image_colorspace_get(hImage, &cs); if ((cs & IG_COLOR_SPACE_ID_ColorMask) == IG_COLOR_SPACE_ID_I) bIndexed = TRUE; else bIndexed = FALSE; |