ImageEn, unit imageenproc

TImageEnProc.Contrast2

TImageEnProc.Contrast2


Declaration

procedure Contrast2(Amount: Double);


Description

Adjust the contrast of the image. Amount is a floating point value between from -1.0 and 1.0.

Note: If the image PixelFormat is not ie24RGB, it will be converted


Demos

Demo  Demos\ImageEditing\AutoEnhance\AutoAdjust.dpr
Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );

  

// Reduce the contrast
ImageEnView1.Proc.Contrast2( -0.3 );

  


See Also

Contrast
Contrast3