ImageEn, unit iexBitmaps

TIEMultiBitmap.SetImageRect

TIEMultiBitmap.SetImageRect


Declaration

procedure SetImageRect(idx: Integer; srcImage: TBitmap; x1, y1, x2, y2: Integer);
procedure SetImageRect(idx: Integer; srcImage: TIEBitmap; x1, y1, x2, y2: Integer);


Description

Sets the image assigned to index, idx.

The rectangle x1, y1, x2, y2 of srcImage bitmap is copied internally. After calling SetImageRect you can free the srcImage bitmap.


Example

// Set image of a TImageEnView into rect (100, 100, 200, 200) of the first image of our multi-bitmap
n := mbmp.SetImageRect( 0, ImageEnView1.IEBitmap, 100, 100, 200, 200 );