ImageEn, unit iexBitmaps

TIEMultiBitmap.MoveImage

TIEMultiBitmap.MoveImage


Declaration

procedure MoveImage(idx: Integer; destination: Integer);


Description

Moves an image from the index position idx to the destination position.
If the destination index is greater than or equal to the image count, the image is moved to the position after the last image.

Note: If you have images of the order ABCD, then calling MoveImage(0, 2) would change it to BCAD


Example

// Exchange first and second images
MBitmap.MoveImage(0, 1);

// Move first image to the end of the grid
MBitmap.MoveImage(0, MBitmap.Count);