ImageGear for C and C++ on Linux v18.10 - Updated
IG_load_color_reduction_get
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().

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_load_color_reduction_get(
   LPUINT lpColorReduceMode
);

Arguments:

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.

Example:

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

Remarks:

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