ImageGear for C and C++ on Linux v18.8 - Updated
IG_IP_pseudocolor_small_grads
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Image Processing Functions > IG_IP_pseudocolor_small_grads

This function colors an 8-bit gray level image such that small gradients are exposed.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_IP_pseudocolor_small_grads (
        HIGEAR hIGear, 
        UINT nSlope 
);

Arguments:

Name Type Description
hIGear HIGEAR HIGEAR handle of 8-bit grayscale image to be colored.
nSlope UINT An integer from 1 to 255. Higher values increase colors faster.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

Grayscale – 8-16 bpp.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Example:

 
Copy Code
HIGEAR hIGear;
if ( IG_image_is_valid(hIGear) )
        if ( IG_image_is_gray(hIGear) )
        IG_IP_pseudocolor_small_grads ( hIGear, 10 );  

Remarks:

The greater the value of nSlope, the faster the color will change for a given rate of change of the pixel value.