Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
This function draws an elliptical arc.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
PosX | X-Coordinate of the midpoint of the arc | $x |
PosY | Y-Coordinate of the midpoint of the arc | $y |
Width | Width of the bounding rectangle | $w |
Height | Height of the bounding rectangle | $h |
StartAngle | Start Angle. | $StartAngle |
EndAngle | End Angle. | $EndAngle |
Returns OK or error.
See also DrawArcEx function in DynaPDF manual.
Draw pie chart with bigger width and height:
Set Variable [ $r ; Value: MBS( "DynaPDF.SetStrokeColor"; $pdf; 0; 0; 0) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.SetLineWidth"; $pdf; 5) ]
#
Set Variable [ $r ; Value: MBS( "DynaPDF.SetFillColor"; $pdf; 0; 0; 0.8) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.MoveTo"; $pdf; 300; 300) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.DrawArcEx"; $pdf; 300; 300; 300; 200; 20; 200 ) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.ClosePath"; $pdf; "fillStroke" ) ]
#
Set Variable [ $r ; Value: MBS( "DynaPDF.SetFillColor"; $pdf; 0; 0.8; 0) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.MoveTo"; $pdf; 300; 300) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.DrawArcEx"; $pdf; 300; 300; 300; 200; 200; 300 ) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.ClosePath"; $pdf; "fillStroke" ) ]
#
Set Variable [ $r ; Value: MBS( "DynaPDF.SetFillColor"; $pdf; 0.8; 0; 0) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.MoveTo"; $pdf; 300; 300) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.DrawArcEx"; $pdf; 300; 300; 300; 200; 300; 20 ) ]
Set Variable [ $r ; Value: MBS( "DynaPDF.ClosePath"; $pdf; "fillStroke" ) ]
Created 18th August 2014, last changed 3th January 2021
DynaPDF.DrawArc - DynaPDF.DrawChord
Feedback: Report problem or ask question.