This function returns the number of color channels in the specified color space.
Copy Code
|
|
---|---|
AT_UINT ACCUAPI IG_util_colorspace_color_count_get( enumIGColorSpaceIDs colorSpace ); |
Name | Type | Description |
---|---|---|
colorSpace | enumIGColorSpaceIDs | Color space ID. |
The number of color channels.
This function does not process image pixels.
None
Copy Code
|
|
---|---|
enumIGColorSpaceIDs colorSpace = IG_COLOR_SPACE_ID_RGBA; AT_UINT nColor; /* Number of color channels */ nColor = IG_util_colorspace_color_count_get(colorSpace); /* nColor is 3 */ |
Color channels are all image channels except alpha and extra channels.