DrawTextArc

Text, Page layout

Description

Draws text fitted to an imaginary arc with the specified center point and radius. The text will be drawn with it's left edge at the requested angle, where 0 degrees is the "12 o'clock" position, and positive angles are clockwise. The SetTextAlign function can be used to change the alignment of the text relative to the specified angle.

Syntax

Delphi

function TPDFlib.DrawTextArc(XPos, YPos, Radius, Angle: Double; Const Text: WideString; DrawOptions: Integer): Integer;

ActiveX

Function PDFlib::DrawTextArc(XPos As Double, YPos As Double, Radius As Double, Angle As Double, Text As String, DrawOptions As Long) As Long

DLL

int DLDrawTextArc(int InstanceID, double XPos, double YPos, double Radius, double Angle, wchar_t * Text, int DrawOptions);

Parameters

XPosThe horizontal co-ordinate of the center of the arc
YPosThe vertical co-ordinate of the center of the arc
RadiusThe radius of the arc
AngleThe angle at which the text should be placed
TextThe actual text to draw
DrawOptions0 = Draw the text outside the arc in a clockwise direction 1 = Draw the text inside the arc in an anti-clockwise direction

Return values

0The text was blank or the DrawOptions parameter was out of range The text was drawn successfully
1