THPDFViewer Region Snapshots

Renders a selected PDF page rectangle so memory use depends on the region rather than the whole page

Declarations

function CreatePageRegionSnapshot(PageIndex: Integer; const PageRect: THPDFRectangle; DPI: Integer= 150): TBitmap;
function CreateCurrentPageRegionSnapshot(const PageRect: THPDFRectangle; DPI: Integer= 150): TBitmap;

Region handling

Example

Region.Left := 72;
Region.Bottom := 72;
Region.Right := 288;
Region.Top := 216;
Bitmap := Model.CreateCurrentPageRegionSnapshot(Region, 300);