ImageEn, unit iexBitmaps

TIEBitmap.MoveRegion

TIEBitmap.MoveRegion

Declaration

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

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.
If MoveAlpha is false, then MoveRegion doesn't copy the alpha channel.

Demo

Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr

Example

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