DynaPDF.Ellipse
---------------

Draws an ellipse.

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

MBS( "DynaPDF.Ellipse"; PDF; PosX; PosY; Width; Height; FillMode ) 

**MBS**( **"DynaPDF.Ellipse";** /\* Draws an ellipse. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$PosX**; /\* X-Coordinate of the bounding rectanglee.g. $x \*/   
**$PosY**; /\* Y-Coordinate of the bounding rectangle.e.g. $y \*/   
**$Width**; /\* Width of the bounding rectangle.e.g. 200 \*/   
**$Height**; /\* Height of the bounding rectangle.e.g. 150 \*/   
**$FillMode**) /\* Fill mode. Can be FillNoClose, StrokeNoClose, FillStrokeNoClose, Fill, Stroke, FillStroke, FillEvOdd, FillStrokeEvOdd, FillEvOddNoClose, FillStrokeEvOddNoClose, NoFill or Close.e.g. "fill" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| PosX | X-Coordinate of the bounding rectangle | $x |
| PosY | Y-Coordinate of the bounding rectangle. | $y |
| Width | Width of the bounding rectangle. | 200 |
| Height | Height of the bounding rectangle. | 150 |
| FillMode | Fill mode. Can be FillNoClose, StrokeNoClose, FillStrokeNoClose, Fill, Stroke, FillStroke, FillEvOdd, FillStrokeEvOdd, FillEvOddNoClose, FillStrokeEvOddNoClose, NoFill or Close. | "fill" |

### Result

Returns OK or error.

### Description

Draws an ellipse.   
If the coordinate system is bottom-up the point PosX, PosY defines the lower left corner of the bounding rectangle. If the coordinate system is top-down it defines the upper left corner.   
The draw direction can be changed with the function [DynaPDF.SetDrawDirection](DynaPDFSetDrawDirection.md).   
An ellipse is a closed path that can be filled, stroked or both. It is also possible to draw an ellipse invisible to apply the filling rules nonzero winding number or even-odd. The filling rules are described under [DynaPDF.ClipPath](DynaPDFClipPath.md). The parameter FillMode is ignored if the ellipse is drawn inside a clipping path. The fill modes are described under [DynaPDF.ClosePath](DynaPDFClosePath.md).  
See also [Ellipse](https://www.monkeybreadsoftware.com/DynaPDF-Manual/Ellipse.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.Bezier123](DynaPDFBezier123.md)
- [DynaPDF.ClipPath](DynaPDFClipPath.md)
- [DynaPDF.ClosePath](DynaPDFClosePath.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.Release](DynaPDFRelease.md)
- [DynaPDF.SetDrawDirection](DynaPDFSetDrawDirection.md)

### Example Databases

- [DynaPDF/Signature Appearance](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Signature%20Appearance.shtml#1ScriptAnchor_)

This function checks for a license.

Created 6th February 2015 , last changed 6th February 2015

  
[DynaPDF.EditTemplate2](DynaPDFEditTemplate2.md) - [DynaPDF.EnableEncryption](DynaPDFEnableEncryption.md)

[HTML Version](DynaPDFEllipse.shtml)