TextArc |
-
TextArc( aPos, nRadius, aEllipse, nStartAngle, nSweepAngle, cText, nAlign, lUTF) => prints a string of text on the page, in a arc acording to the specified radius and angle, at Xpos and Ypos position that are calculated according to page size.
aPos (array, { <nX0>, <nY0> }) : aPos is an array of two elements which determines the coordinates for the center point of the circle. The first element <nX0> specifies the x coordinate and the second element <nY0> specifies the y coordinate. The unit for the coordinates depends on the coordinate system defined for the page.
nRadius (numeric) : Radius of arc according to coordinate system.
aEllipse (array { <nX1>, <nY1>, <nX2>, <nY2> } : The parameter aEllipse is needed to draw an ellipse. It is an array with four elements which designates the end points of both ellipse axes. The coordinates of both endpoints are calculated by the following equations.
The default value of aEllipse is {1,0,0,1}.
nStartAngle (numeric) : Starting angle to start the text string, ranging from 0 to 360, starting at the normal text position and rotating counter clockwise back to an horizontal position.
nSweepAngle (numeric) : is a positive integer which indicates the opening angle for the arc in degrees.
cText (character) : Text to be included in the document.
nAlign (numeric) : 0 => Draw the text in a clockwise direction, align Left
1 => Draw the text in a clockwise direction, align Right
2 => Draw the text in a clockwise direction, align Center
3 => Draw the text in a anti-clockwise direction, align Left
4 => Draw the text in a anti-clockwise direction, align Right
5 => Draw the text in a anti-clockwise direction, align Center
lUTF (logic) : indicates if the string is a normal ANSI text (false), or if it is an UNICODE text (true). (Default is false)
Examples : oPDF:GraArc({1450,1200}, 400, , 350, 90, GRA_OUTLINEFILL)
oPDF:TextArc({1450,1200}, 370, , 350, 90, "nAlign = 3", 3)
oPDF:GraArc({1450,1200}, 400, , 80, 90, GRA_OUTLINEFILL)
oPDF:GraArc({1450,1200}, 400, , 125, 1, GRA_OUTLINEFILL)
oPDF:TextArc({1450,1200}, 370, , 80, 90, "nAlign = 5", 5)
oPDF:GraArc({1450,1200}, 400, , 170, 90, GRA_OUTLINEFILL)
oPDF:TextArc({1450,1200}, 370, , 170, 90, "nAlign = 4", 4)
oPDF:TextArc({1450,1200}, 300, , 350, 90, "nAlign = 0", 0)
oPDF:TextArc({1450,1200}, 300, , 80, 90, "nAlign = 2", 2)
oPDF:TextArc({1450,1200}, 300, , 170, 90, "nAlign = 1", 1)