ImageEn, unit imageenproc

TImageEnProc.GammaCorrect

TImageEnProc.GammaCorrect

Declaration

procedure GammaCorrect(Gamma: Double; Channel: TIEChannels);

Description

Perform a gamma correction.
Gamma is the gamma correction value. A value of 1.0 causes no gamma correction processing.
Channel is the channel to apply the gamma.

Note:
A UI for this is available to your users in the Image Processing dialog
If the image PixelFormat is not ie24RGB, ie32RGB or ie48RGB, it will be converted

Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr

Example

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

  

// Apply gamma correction over all channels (RGB)
ImageEnView1.Proc.GammaCorrect( 2, [iecRed, iecGreen, iecBlue] );