ImageGear Professional v18.1 > 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.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_IP_pseudocolor_small_grads ( HIGEAR hIGear, UINT nSlope ); |
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. |
Returns the number of ImageGear errors that occurred during this function call.
Grayscale – 8-16 bpp.
Returns the number of ImageGear errors that occurred during this function call.
Copy Code
|
|
---|---|
HIGEAR hIGear; if ( IG_image_is_valid(hIGear) ) if ( IG_image_is_gray(hIGear) ) IG_IP_pseudocolor_small_grads ( hIGear, 10 ); |
The greater the value of nSlope, the faster the color will change for a given rate of change of the pixel value.