ImageEn, unit iexBitmaps

TIEBitmap.FixChannelOffset

TIEBitmap.FixChannelOffset


Declaration

procedure FixChannelOffset();


Description

Makes ChannelOffset property permanent (applying the specified offsets).
The ChannelOffset property values are then reset to zero.
Only works for ie24RGB, ie32RGB and ie48RGB pixel formats.


Example

// Display only the red channel
ImageEnView.IEBitmap.ChannelOffset[1] := -255; // hide green
ImageEnView.IEBitmap.ChannelOffset[2] := -255; // hide blue
ImageEnView.FixChannelOffset(); // Permanently apply changes
ImageEnView.Update();