ImageEn, unit iemview

TImageEnMView.SetImage

TImageEnMView.SetImage


Declaration

procedure SetImage(idx: Integer; srcImage: TIEBaseBitmap); overload;
procedure SetImage(idx: Integer; srcImage: TBitmap); overload;
procedure SetImage(idx: Integer; width, height: Integer; PixelFormat: TIEPixelFormat); overload;


Description

Sets the image assigned to index, idx. The srcImage bitmap is copied internally; therefore you can free srcImage after calling SetImage.

Warning: This method may modify srcImage


Example

ImageEnView1.IO.LoadFromFile('000.tif');
ImageEnMView1.InsertImage(0);
ImageEnMView1.SetImage(0, ImageEnView1.IEBitmap);


See Also

SetImageFromFile
SetImageFromStream