Debenu Quick PDF logo

DrawRotatedText

Text, Page layout

Description

Draws text on the selected page, using the selected font at the predetermined font size. If no fonts have been added, then the standard font Helvetica will automatically be added, selected and set to 12pt. The alignment of the text is determined by the previous call to the SetTextAlign function.

Syntax

Delphi

function TDebenuPDFLibrary1811.DrawRotatedText(XPos, YPos, Angle: Double; 
  Text: WideString): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::DrawRotatedText(XPos As Double,
  YPos As Double, Angle As Double, Text As String) As Long

DLL

int DPLDrawRotatedText(int InstanceID, double XPos, double YPos, double Angle,
  wchar_t * Text)

Parameters

XPos The horizontal position of where to draw the text
YPos The vertical position of where to draw the text. The reference point is the text baseline.
Angle The angle to draw the text, measured anti-clockwise from the horizontal. Must be between 0 and 360, inclusive.
Text The text to draw on the page

Return values

0 The Angle parameter was less than 0 or greater than 360, or the Text parameter was blank
1 The text was drawn successfully

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport