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.


Example

ImageEnView.IEBitmap.BlackValue := 100;
ImageEnView.IEBitmap.WhiteValue := 200;
ImageEnView.StretchValues(); // Permanently apply changes
ImageEnView.Update();