THPDFViewer Rotation
PDF 페이지 딕셔너리를 바꾸지 않으면서 표시 중인 페이지와 뷰어 모델 스냅샷을 90도 단위로 회전합니다
선언
property ViewRotation: Integer;
procedure RotateClockwise;
procedure RotateCounterClockwise;
procedure ResetViewRotation;
procedure ApplyViewRotation(Bitmap: TBitmap);
사용 참고 사항
ViewRotation은 0, 90, 180, 270도 중 하나로 정규화됩니다- 새 문서를 할당하면 뷰 회전은 0으로 초기화됩니다
- 페이지 맞춤·폭 맞춤 계산은 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;