ImageEn, unit imageenview

TImageEnView.MoveSelection

TImageEnView.MoveSelection


Declaration

procedure MoveSelection(MoveX, MoveY: Integer; Sizing: Boolean = False);


Description

Moves the current selection by the specified horizontal and vertical offsets. If Sizing is true then selection is resized (top-left position does not move).


Example

// Move the selection up and left 5 pixels
ImageEnView.MoveSelection( -5, -5 );

// Enlarge the selection vertically and horizontally by 10 pixels (top-left of selection does not change)
ImageEnView.MoveSelection( 10, 10, True );

// Enlarge the selection by ten pixels in all dimensions
ImageEnView.MoveSelection( -10, -10 );
ImageEnView.MoveSelection( 20, 20, True );