ImageEn, unit imageenview

TImageEnView.PaintRect

TImageEnView.PaintRect

Declaration

procedure PaintRect(rc: TRect);

Description

Repaints the rectangle rc without waiting for the Windows Paint message.

Example

// This code paints an image (width=50 height=50) at bitmap coordinates 10,10
ImageEnView1.IEBitmap.Canvas.Draw(10, 10, MyBitmap);
// Map the bitmap coordinates to view coordinates (rc is a TRect type)
with ImageEnView1 do
  rc := Rect( XBmp2Scr(10), YBmp2Scr(10), XBmp2Scr(10+50), YBmp2Scr(10+50) );
ImageEnView1.UpdateRect(rc);  // update internal ImageEn state
ImageEnView1.PaintRect(rc);  // paint the changes on the screen