THPDFLoadedPageRenderSession Class

保留页面渲染状态和一个实时的局部位图,使已加载页面可以分多次有界调用完成渲染

声明

THPDFLoadedPageRenderSession = class(TObject)
public
  constructor Create(AOwner: THotPDF; PageIndex, DPI: Integer;
    CancellationToken: THPDFCancellationToken);
  constructor CreateRegion(AOwner: THotPDF; PageIndex: Integer;
    RegionLeft, RegionBottom, RegionRight, RegionTop: Single;
    DPI: Integer; CancellationToken: THPDFCancellationToken);
  function ContinueRender(MaxMilliseconds: Cardinal = 0;
    MaxObjects: Integer = 0): THPDFProgressiveRenderStatus;
  function TakeBitmap: TBitmap;
  function GetFallbackDiagnostics: THPDFRenderFallbackDiagnostics;
  property Bitmap: TBitmap read GetBitmap;
  property ObjectsProcessed: Integer read GetObjectsProcessed;
  property TotalObjects: Integer read GetTotalObjects;
  property ProgressiveJPEGScansDecoded: Integer
    read GetProgressiveJPEGScansDecoded;
  property ProgressiveJPEGImagesDecoded: Integer
    read GetProgressiveJPEGImagesDecoded;
  property Status: THPDFProgressiveRenderStatus read GetStatus;
  property IsRegionRender: Boolean read FIsRegionRender;
  property RegionLeft: Single read FRegionLeft;
  property RegionBottom: Single read FRegionBottom;
  property RegionRight: Single read FRegionRight;
  property RegionTop: Single read FRegionTop;
  property RegionVisiblePaintObjects: Integer
    read GetRegionVisiblePaintObjects;
  property RegionCulledPaintObjects: Integer
    read GetRegionCulledPaintObjects;
  property FallbackDroppedCount: Integer read GetFallbackDroppedCount;
  property OnProgress: THPDFProgressiveRenderProgressEvent
    read FOnProgress write SetOnProgress;
  property OnProgressiveJPEGScan: THPDFProgressiveJPEGScanEvent
    read FOnProgressiveJPEGScan write SetOnProgressiveJPEGScan;
end;

单元

HPDFDoc

状态值

使用说明

相关 API