ImageEn, unit imageenproc |
|
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 one of ie24RGB, ie32RGB, ie48RGB, it will be converted
| Demos\ImageEditing\EveryMethod\EveryMethod.dpr |
// Load test image
ImageEnView1.IO.LoadFromFile( 'D:\TestImage.jpg' );
// Apply gamma correction over all channels (RGB)
ImageEnView1.Proc.GammaCorrect( 2, [iecRed, iecGreen, iecBlue] );