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.

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


Example

// Display only the red channel
ImageEnView1.IEBitmap.ChannelOffset[ iecGreen ] := -255;  // hide green
ImageEnView1.IEBitmap.ChannelOffset[ iecBlue  ] := -255;  // hide blue
ImageEnView1.IEBitmap.FixChannelOffset();        // Permanently apply changes