ImgAdjustContrast
Previous  Top  Next

Prototype

ImgAdjustContrast (intImageHandle, floatPercent)

Description

It changes the contrast in gray and color images.

Parameters

intImageHandle: integer value corresponding to the image handle.
floatPercentage: float value that specifies contrast percentage increment or decrement. It can range from -100.0 to +100.0

Returned value

None.

Example

//It changes contrast percentage
ImgAdjustContrast(_CurrentImage,-10.0);

//It shows a message 
ApplicationLog(_CurrentAgent,'Set Contrast to -10.0%');


Note

See ImgStretchContrast to automatically adjust contrast level.