DynaPDF.DrawArcEx
-----------------

This function draws an elliptical arc.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.DrawArcEx"; PDF; PosX; PosY; Width; Height; StartAngle; EndAngle ) 

**MBS**( **"DynaPDF.DrawArcEx";** /\* This function draws an elliptical arc. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$PosX**; /\* X-Coordinate of the midpoint of the arce.g. $x \*/   
**$PosY**; /\* Y-Coordinate of the midpoint of the arce.g. $y \*/   
**$Width**; /\* Width of the bounding rectanglee.g. $w \*/   
**$Height**; /\* Height of the bounding rectanglee.g. $h \*/   
**$StartAngle**; /\* Start Angle. \*/   
**$EndAngle**) /\* End Angle. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| 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 |

### Result

Returns OK or error.

### Description

This function draws an elliptical arc.   
A full ellipse is drawn if the start and end angles are the same. The path is not closed, stroked or filled so that it will be invisible as long it is not stroked, filled or both (see [DynaPDF.ClosePath](DynaPDFClosePath.md), DynaPDF.StokePath for further information).  
The current point is connected with the start point of the ellipse and then updated to the end point of the ellipse.  
The draw direction can be changed with the function [DynaPDF.SetDrawDirection](DynaPDFSetDrawDirection.md). The start and end angles are always measured counter clockwise independent of the drawing direction.  
See also [DrawArcEx](https://www.monkeybreadsoftware.com/DynaPDF-Manual/DrawArcEx.shtml) function in DynaPDF manual.

### Examples

Draw pie chart with bigger width and height:

 Set Variable \[ $r ; Value: MBS ( "[DynaPDF.SetStrokeColor](DynaPDFSetStrokeColor.md)"; $pdf ; 0; 0; 0) \]   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.SetLineWidth](DynaPDFSetLineWidth.md)"; $pdf ; 5) \]   
\#   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.SetFillColor](DynaPDFSetFillColor.md)"; $pdf ; 0; 0; 0.8 ) \]   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.MoveTo](DynaPDFMoveTo.md)"; $pdf ; 300; 300) \]   
Set Variable \[ $r ; Value: MBS ( "DynaPDF.DrawArcEx"; $pdf ; 300; 300; 300; 200; 20; 200 ) \]   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.ClosePath](DynaPDFClosePath.md)"; $pdf ; "fillStroke" ) \]   
\#   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.SetFillColor](DynaPDFSetFillColor.md)"; $pdf ; 0; 0.8 ; 0) \]   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.MoveTo](DynaPDFMoveTo.md)"; $pdf ; 300; 300) \]   
Set Variable \[ $r ; Value: MBS ( "DynaPDF.DrawArcEx"; $pdf ; 300; 300; 300; 200; 200; 300 ) \]   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.ClosePath](DynaPDFClosePath.md)"; $pdf ; "fillStroke" ) \]   
\#   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.SetFillColor](DynaPDFSetFillColor.md)"; $pdf ; 0.8 ; 0; 0) \]   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.MoveTo](DynaPDFMoveTo.md)"; $pdf ; 300; 300) \]   
Set Variable \[ $r ; Value: MBS ( "DynaPDF.DrawArcEx"; $pdf ; 300; 300; 300; 200; 300; 20 ) \]   
Set Variable \[ $r ; Value: MBS ( "[DynaPDF.ClosePath](DynaPDFClosePath.md)"; $pdf ; "fillStroke" ) \]  
### See also

- [DynaPDF.ClosePath](DynaPDFClosePath.md)
- [DynaPDF.DrawArc](DynaPDFDrawArc.md)
- [DynaPDF.DrawChord](DynaPDFDrawChord.md)
- [DynaPDF.DrawCircle](DynaPDFDrawCircle.md)
- [DynaPDF.MoveTo](DynaPDFMoveTo.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetDrawDirection](DynaPDFSetDrawDirection.md)
- [DynaPDF.SetFillColor](DynaPDFSetFillColor.md)
- [DynaPDF.SetLineWidth](DynaPDFSetLineWidth.md)
- [DynaPDF.SetStrokeColor](DynaPDFSetStrokeColor.md)

### Blog Entries

- [MBS Filemaker Plugin, version 3.2pr4](https://www.mbsplugins.de/archive/2013-03-18/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 3th January 2021

  
[DynaPDF.DrawArc](DynaPDFDrawArc.md) - [DynaPDF.DrawChord](DynaPDFDrawChord.md)

[HTML Version](DynaPDFDrawArcEx.shtml)