DrawRotatedTextA
Text, Page layout
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to DrawRotatedText and string arguments are interpreted using the current SetAnsiMode code page
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 DLDrawRotatedTextA(InstanceID: Integer; XPos, YPos, Angle: Double; Text: PAnsiChar): Integer;
DLL
int DLDrawRotatedTextA(int InstanceID, double XPos, double YPos, double Angle, const char * 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 |