THPDFViewer 旋轉
以 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;