ImageEn, unit iexBitmaps

TIEBitmap.StretchValues

TIEBitmap.StretchValues

Declaration

procedure StretchValues();

Description

Stretches the pixel values in the range of BlackValue and WhiteValue.
BlackValue and WhiteValue are then reset to zero.
Works only when PixelFormat is ie8g, ie16g, ie24RGB and ie32f. Other formats are ignored.

Note: If attached to a TImageEnView, it will automatically call Update

Example

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

  

// Trim top and bottom 10% of color range
ImageEnView1.IEBitmap.BlackValue := 25;
ImageEnView1.IEBitmap.WhiteValue := 230;
ImageEnView1.IEBitmap.StretchValues();     // Permanently apply changes