THPDFViewerModel Snapshot Methods
Creates page images without constructing a Viewer control and reuses the loaded page render cache
Declarations
function CreatePageSnapshot(PageIndex: Integer; DPI: Integer= 150): TBitmap;
function CreateCurrentPageSnapshot(DPI: Integer= 150): TBitmap;
function SaveCurrentPageSnapshotToBMP(const FileName: string; DPI: Integer= 150): boolean;
Usage notes
- The caller owns and must free each returned
TBitmap - DPI values are clamped to the supported range from 12 through 2400
- Invalid document or page state returns
nilfrom the creation methods SaveCurrentPageSnapshotToBMPwrites Windows BMP output and returns whether the file was created