ImageEn, unit iexUserInteractions |
|
TIEPdfViewer.DrawViewTo
Declaration
procedure DrawViewTo(Bitmap: TIEBitmap; DrawSelection: Boolean = True);
Description
Output the current view (as seen in the control) to an image.
If DrawSelection is true, all visible selections are output (selected text and active page, annotions or objects).
Note: To render a page, use
DrawTo
// Draw the current view to another TImageEnView
ImageEnView1.PdfViewer.DrawViewTo( ImageEnView2.IEBitmap );
ImageEnView2.Update();
// Save the current view as a screenshot
bmp := TIEBitmap.Create;
ImageEnView1.PdfViewer.DrawViewTo( bmp );
bmp.SaveToFile('D:\pdfview.jpeg');
bmp.Free;
See Also
◼DrawTo