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;

An empty intersection or invalid page returns nil