DynaPDF.DrawChord
-----------------

This function draws an elliptical chord (a region bounded by the intersection of an ellipse and a line segment, called a secant).

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

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

**MBS**( **"DynaPDF.DrawChord";** /\* This function draws an elliptical chord (a region bounded by the intersection of an ellipse and a line segment, called a secant). \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$PosX**; /\* X-Coordinate of the midpoint of the chorde.g. $x \*/   
**$PosY**; /\* Y-Coordinate of the midpoint of the chorde.g. $y \*/   
**$Width**; /\* Width of the bounding rectanglee.g. $w \*/   
**$Height**; /\* Height of the bounding rectanglee.g. $h \*/   
**$StartAngle**; /\* Start Angle. \*/   
**$EndAngle**; /\* End Angle. \*/   
**$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 midpoint of the chord | $x |
| PosY | Y-Coordinate of the midpoint of the chord | $y |
| Width | Width of the bounding rectangle | $w |
| Height | Height of the bounding rectangle | $h |
| StartAngle | Start Angle. | $StartAngle |
| EndAngle | End Angle. | $EndAngle |
| 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

This function draws an elliptical chord (a region bounded by the intersection of an ellipse and a line segment, called a secant).  
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.  
A chord is a closed path that can be filled, stroked or both. It is also possible to draw a chord 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 chord is drawn inside a clipping path. The fill modes are described under [DynaPDF.ClosePath](DynaPDFClosePath.md).  
See also [DrawChord](https://www.monkeybreadsoftware.com/DynaPDF-Manual/DrawChord.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.ClipPath](DynaPDFClipPath.md)
- [DynaPDF.ClosePath](DynaPDFClosePath.md)
- [DynaPDF.DrawArc](DynaPDFDrawArc.md)
- [DynaPDF.DrawArcEx](DynaPDFDrawArcEx.md)
- [DynaPDF.DrawCircle](DynaPDFDrawCircle.md)
- [DynaPDF.DrawNGon](DynaPDFDrawNGon.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetDrawDirection](DynaPDFSetDrawDirection.md)
- [DynaPDF.SkewCoords](DynaPDFSkewCoords.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 18th August 2014

  
[DynaPDF.DrawArcEx](DynaPDFDrawArcEx.md) - [DynaPDF.DrawCircle](DynaPDFDrawCircle.md)

[HTML Version](DynaPDFDrawChord.shtml)