DrawRotatedImage

Image handling, Page layout

Description

Similar to the DrawImage function but the image can be rotated at any angle. Note that the anchor point is the bottom left corner of the image, not the top-left as in the DrawImage function.

Syntax

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);

Parameters

LeftThe horizontal co-ordinate of the anchor point
BottomThe vertical co-ordinate of the anchor point
WidthThe width of the image
HeightThe height of the image
AngleThe angle to rotate the image, measured anti-clockwise in degrees from the baseline, around the anchor point (bottom-left of the image)

Return values

0No image has been selected
1The image was drawn successfully