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已成功绘制图像