ImageEn, unit imageenview |
|
TImageEnView.DrawTo
Declaration
procedure DrawTo(Canvas: TCanvas); overload;
procedure DrawTo(Dest: TIEBitmap); overload;
Description
Draws the current view to the specified canvas.
Note: The background is not painted, and the image has an up-left alignment.
// Draw in ImageEnView2 all what is displayed in ImageEnView1 (Zoom must not be > 100%)
ImageEnView2.IEBitmap.Allocate( ImageEnView1.ExtentX, ImageEnView1.ExtentY );
ImageEnView1.DrawTo( ImageEnView2.IEBitmap.Canvas );
ImageEnView2.Update();
// Alternatively...
ImageEnView1.DrawTo( ImageEnView2.IEBitmap );
ImageEnView2.Update();