ImageEn, unit iemview

TImageEnMView.SetImageEx

TImageEnMView.SetImageEx


Declaration


procedure SetImageEx(idx: Integer; srcImage: TBitmap);


Description


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

SetImageEx doesn't call Update (the only difference from SetImage).


Example


ImageEnView1.IO.LoadFromFile('000.tif');
ImageEnMView1.InsertImageEx(0);
ImageEnMView1.SetImageEx(0, ImageEnView1.IEBitmap);
ImageEnMView1.Update(); // not needed for SetImage()