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 TPDFlib.DrawRotatedText(XPos, YPos, Angle: Double; Const Text: WideString): Integer;ActiveX
Function PDFlib::DrawRotatedText(XPos As Double, YPos As Double, Angle As Double, Text As String) As LongDLL
int DLDrawRotatedText(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 |