DADrawRotatedCapturedPage
直接访问功能、页面布局
描述
类似 DADrawCapturedPage 函数,但允许以任意角度绘制捕获的页面
语法
Delphi
Function TPDFlib.DADrawRotatedCapturedPage(FileHandle, DACaptureID, DestPageRef: Integer; PntLeft, PntBottom, PntWidth, PntHeight, Angle: Double): Integer;
ActiveX
Function PDFlib::DADrawRotatedCapturedPage(FileHandle As Long, DACaptureID As Long, DestPageRef As Long, PntLeft As Double, PntBottom As Double, PntWidth As Double, PntHeight As Double, Angle As Double) As Long
DLL
int DLDADrawRotatedCapturedPage(int InstanceID, int FileHandle, int DACaptureID, int DestPageRef, double PntLeft, double PntBottom, double PntWidth, double PntHeight, double Angle);
参数
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函数返回的句柄 |
|---|---|
| DACaptureID | DACapturePage 函数返回的捕获 ID |
| DestPageRef | 由 DAFindPage 或 DANewPage 函数返回的页面引用 目标矩形左边缘的水平坐标,以页面左边缘为起点按点计量 |
| PntLeft | |
| PntBottom | 目标矩形底边的垂直坐标,从页面底边起以点为单位测量 |
| PntWidth | 以点为单位的目标矩形宽度 以点为单位的目标矩形高度 |
| PntHeight | |
| Angle | 从基线按逆时针方向测量的捕获页面旋转角度,单位为度 |
返回值
| 0 | 指定的 FileHandle、PageRef 或 DACaptureID 无效 |
|---|---|
| 1 | 已成功绘制捕获的页面 double PntBottom, double PntWidth, double PntHeight, double Angle); |