This function returns the number of extra channels in the specified color space.
Declaration:
Copy Code |
|
|---|---|
AT_UINT ACCUAPI IG_util_colorspace_extra_count_get(
enumIGColorSpaceIDs colorSpace,
AT_UINT totalChannelCount
);
|
|
Arguments:
| Name | Type | Description |
| colorSpace | enumIGColorSpaceIDs | Color space ID. |
| totalChannelCount | AT_UINT | Total number of channels in the color space. |
Return Value:
Returns the number of extra channels.
Supported Raster Image Formats:
This function does not process image pixels.
Sample:
None
Example:
Copy Code |
|
|---|---|
enumIGColorSpaceIDs colorSpace = IG_COLOR_SPACE_ID_RGBAEx; AT_UINT nExtra; /* Number of extra channels */ nExtra = IG_util_colorspace_extra_count_get(colorSpace); /* nExtra is 1 */ |
|
Remarks:
You must specify the total number of channels in the color space in order for this to be calculated.