THPDFViewer Rotation
以 90 度步长旋转显示的页面和 Viewer 模型快照,而不更改 PDF 页面字典
声明
property ViewRotation: Integer;
procedure RotateClockwise;
procedure RotateCounterClockwise;
procedure ResetViewRotation;
procedure ApplyViewRotation(Bitmap: TBitmap);
使用说明
ViewRotation规范化为 0、90、180 或 270 度- 分配新文档将视图旋转重置为零
- 适应页面和适应宽度计算使用组合的 PDF 页面和视图旋转
- 搜索命中覆盖层随渲染页面旋转
CreatePageSnapshot、CreateCurrentPageSnapshot和 BMP 输出包含活动的视图旋转ApplyViewRotation通过 32 位扫描线路径就地变换调用方拥有的位图
示例
PDFViewer.RotateClockwise;
Snapshot := PDFViewer.Model.CreateCurrentPageSnapshot(150);
try
Snapshot.SaveToFile('rotated-page.bmp');
finally
Snapshot.Free;
end;
PDFViewer.ResetViewRotation;