DrawCapturedPageMatrix
页面布局
描述
此函数将先前使用 CapturePage 函数捕获的页面绘制到当前页面。使用变换矩阵指定大小、位置和旋转,从而实现高级页面拼版
不能使用 CapturePage 将页面从一个文档移动到另一个文档,因此必须先将所有所需页面合并到一个文档,再调用 CapturePage,CaptureID 只是隐藏页面的指针,因此无需释放
语法
Delphi
Function TPDFlib.DrawCapturedPageMatrix(CaptureID: Integer; M11, M12, M21, M22, MDX, MDY: Double): Integer;
ActiveX
Function PDFlib::DrawCapturedPageMatrix(CaptureID As Long, M11 As Double, M12 As Double, M21 As Double, M22 As Double, MDX As Double, MDY As Double) As Long
DLL
int DLDrawCapturedPageMatrix(int InstanceID, int CaptureID, double M11, double M12, double M21, double M22, double MDX, double MDY);
参数
| CaptureID | 先前捕获页面时由 CapturePage 函数返回的 ID 矩阵分量 |
|---|---|
| M11 | |
| M12 | 矩阵分量 |
| M21 | 矩阵分量 |
| M22 | 矩阵分量 |
| MDX | 矩阵分量 |
| MDY | 矩阵分量 |
返回值
| 0 | 指定了无效的 CaptureID |
|---|---|
| 1 | 已成功绘制捕获页面 |