ImageEn, unit iexBitmaps

TIEBitmap.MoveRegion

TIEBitmap.MoveRegion


Declaration

procedure MoveRegion(x1, y1, x2, y2, DstX, DstY: integer; BackgroundValue: double; FillSource: boolean = true);


Description

Moves a rectangle specified in x1, y1, x2, y2 to DstX, DstY position.
The BackgroundValue parameter specifies the color that fills the source rectangle.
If FillSource is true (default) then the source rectangle is filled with BackgroundValue.
MoveRegion doesn't copy the alpha channel.


Example

// Move Region of 100, 100, 200, 200 to 300, 300, 400, 400. Replace with white
IEBitmap.MoveRegion( 100, 100, 200, 200, 300, 300, clWhite );