ImageEn, unit iemview

TImageEnMView.UpdateImage

TImageEnMView.UpdateImage


Declaration

procedure UpdateImage(idx: Integer);


Description

Redraw the image, idx.

Whenever an image (Bitmap) within a TImageEnMView changes, you must update the component with Update or UpdateImage.


Example

// Draw a rectangle on the fourth image
var
  bmp: TBitmap;
begin
  bmp := ImageEnMView1.GetBitmap(3);
  bmp.canvas.rectangle(0, 0, 10, 10);
  ImageEnMView1.ReleaseBitmap(3);
  UpdateImage(3);
end;