ImageGear for C and C++ on Linux v20.0 - Updated
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Load Functions > IG_load_color_reduction_get

This function retrieves the last setting made by calling function IG_load_color_reduction_set().


Copy Code
AT_ERRCOUNT ACCUAPI IG_load_color_reduction_get(
   LPUINT lpColorReduceMode


Name Type Description
lpColorReduceMode LPUINT Pointer to an AT_MODE variable to receive the current IG_LOAD_COLOR setting.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.


Copy Code
UINT nLoadReduceMode;   /* Will receive the IG_LOAD_COLOR_ constant */
AT_ERRCOUNT nErrCount = IG_load_color_reduction_get ( &nLoadReduceMode );


If no color reduction is in effect, IG_LOAD_COLOR_DEFAULT is returned.

Is this page helpful?
Yes No
Thanks for your feedback.