This function maps from legacy ImageGear color space ID (enumColorSpaces) to current ImageGear color space ID (enumIGColorSpaceIDs).
Copy Code
|
|
---|---|
enumIGColorSpaceIDs ACCUAPI IG_util_colorspace_value_to_ids( enumColorSpaces colorSpace ); |
Name | Type | Description |
---|---|---|
colorSpace | enumColorSpaces | Legacy ImageGear color space ID. |
The current ImageGear color space ID that corresponds with the given legacy ImageGear color space ID.
This function does not process image pixels.
None
Copy Code
|
|
---|---|
enumColorSpaces oldCS; /* Old color space ID */ enumIGColorSpaceIDs cs; /* New color space ID */ oldCS = IG_COLOR_SPACE_CMYK; cs = IG_util_colorspace_value_to_ids(oldCS); /* cs is now IG_COLOR_SPACE_ID_CMYK */ oldCS = IG_COLOR_SPACE_RGBA; cs = IG_util_colorspace_value_to_ids(oldCS); /* cs is now IG_COLOR_SPACE_ID_RGBA */ |
This function exists because the newer color space IDs are different and can store more information. See accucnst.h for the definitions of these enumerations.