DrawRotatedImage
图像处理、页面布局
描述
类似 DrawImage 函数,但图像可旋转任意角度。请注意,锚点是图像的左下角,而非 DrawImage 函数中的左上角
语法
Delphi
Function TPDFlib.DrawRotatedImage(Left, Bottom, Width, Height, Angle: Double): Integer;
ActiveX
Function PDFlib::DrawRotatedImage(Left As Double, Bottom As Double, Width As Double, Height As Double, Angle As Double) As Long
DLL
int DLDrawRotatedImage(int InstanceID, double Left, double Bottom, double Width, double Height, double Angle);
参数
| Left | 锚点的水平坐标 |
|---|---|
| Bottom | 锚点的纵坐标 |
| Width | 图像的宽度 |
| Height | 图像高度 |
| Angle | 图像围绕锚点(图像左下角)从基线起逆时针旋转的角度,以度为单位 |
返回值
| 0 | 尚未选择图像 |
|---|---|
| 1 | 已成功绘制图像 |