ImageEn, unit imageenproc

TImageEnProc.AdjustSaturation

TImageEnProc.AdjustSaturation


Declaration

procedure AdjustSaturation(Amount: Integer);


Description

Adjust color saturation. Amount is a value between -100 and 100.
Negative values decrease saturation (make image more gray). Positive values make image more colored.

Note:
Also available as a RetouchTool by setting MouseInteractGeneral to [miRetouchTool] and RetouchMode to iermSaturation
If the image PixelFormat is not ie24RGB, it will be converted


Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

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

  

// Decrease the saturation (make image more gray).
ImageEnView1.Proc.AdjustSaturation( -50 );