ImageEn, unit imageenview

TImageEnView.PaintRect

TImageEnView.PaintRect


Declaration

procedure PaintRect(rc: TRect);


Description

PaintRect repaints only 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