Debenu Quick PDF logo

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 TDebenuPDFLibrary1811.DrawRotatedImage(Left, Bottom, Width, Height, 
  Angle: Double): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::DrawRotatedImage(Left As Double,
  Bottom As Double, Width As Double, Height As Double,
  Angle As Double) As Long

DLL

int DPLDrawRotatedImage(int InstanceID, double Left, double Bottom, double Width,
  double Height, double Angle)

Parameters

Left The horizontal co-ordinate of the anchor point
Bottom The vertical co-ordinate of the anchor point
Width The width of the image
Height The height of the image
Angle The angle to rotate the image, measured anti-clockwise in degrees from the baseline, around the anchor point (bottom-left of the image)

Return values

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

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport