AddPageMatrix
頁面操作
描述
此函式可沿任一方向縮放頁面內容,也可將頁面上下左右平移。參數以點為單位,72 點 = 1 英吋
100% 縮放需要 xscale = 1、yscale = 1。scale = 2 表示寬度放大 2 倍,即 200%
xoffset = 72 把頁面右移 1 英吋;-72 左移 1 英吋 yoffset = 72 把頁面上移 1 英吋,-72 下移 1 英吋
語法
Delphi
Function TPDFlib.AddPageMatrix(XScale, YScale, XOffset, YOffset: Double): Integer;
ActiveX
Function PDFlib::AddPageMatrix(xscale As Double, yscale As Double, xoffset As Double, yoffset As Double) As Long
DLL
int DLAddPageMatrix(int InstanceID, double xscale, double yscale, double xoffset, double yoffset);
參數
| XScale | 水平縮放比例 |
|---|---|
| YScale | 垂直縮放比例 |
| XOffset | 水平位移 |
| YOffset | 垂直位移 |
傳回值
| 1 | 頁面矩陣加入成功 |
|---|---|
| 0 | 加入頁面矩陣失敗 |