ImageEn, unit ImageEnProc

TImageEnProc.AdjustGainOffset

TImageEnProc.AdjustGainOffset

Declaration

procedure AdjustGainOffset();

Description

Adjust image luminosity by calculating the min and max pixels values and stretching the colors to the maximum allowed value.

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

Demos

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

Example

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

  

// Adjust image luminosity by stretching colors to the maximum allowed value
ImageEnView1.Proc.AdjustGainOffset();