DrawTextArc

テキスト, ページレイアウト

説明

指定した中心点と半径を持つ仮想円弧に沿うようテキストを描画します。テキストは要求角度で左端(it's left edge)から描画され、0 度は "12 o'clock" の位置、正の角度は時計回りです。SetTextAlign 関数を使用して、指定角度に対するテキストの配置を変更できます

構文

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, const wchar_t * Text, int DrawOptions);

パラメータ

XPos円弧中心の水平座標
YPos円弧の中心の垂直座標
Radius円弧の半径
Angleテキストを配置する角度
Text実際に描画するテキスト
DrawOptions0 = 円弧の外側に時計回りでテキストを描画 1 = 円弧の内側に反時計回りでテキストを描画

戻り値

0テキストが空か、DrawOptions パラメーターが範囲外でした。テキストは正常に描画されました
1