Debenu Quick PDF logo

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 TDebenuPDFLibrary1811.DrawTextArc(XPos, YPos, Radius, Angle: Double; 
  Text: WideString; DrawOptions: Integer): Integer;

ActiveX

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

DLL

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

Parameters

XPos The horizontal co-ordinate of the center of the arc
YPos The vertical co-ordinate of the center of the arc
Radius The radius of the arc
Angle The angle at which the text should be placed
Text The actual text to draw
DrawOptions 0 = Draw the text outside the arc in a clockwise direction
1 = Draw the text inside the arc in an anti-clockwise direction

Return values

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

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport