ImgAdjustGamma

Top  Previous  Next

Prototype

 

ImgAdjustGamma (intImageHandle, floatValue)

 

Description

 

Adjust the gamma value in grayscale and color images. Gamma correction is a general non-linear transfer function applied to each pixel. This can be used to correct scanner sensor characteristic, pre-compensate for display behaviour or simply assist in a particular application by simulating a logarithmic response.

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

 

floatPercentage: float value that specifies gamma correction factor. It can range from 0.1 to 10.0

 

Returned value

 

None.

 

Example

 

// Change gamma value

ImgAdjustGamma(_CurrentImage,1.8);