**Xojo Developer Conference**

25/27th April 2018 in Denver.

**MBS Xojo Conference**

6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 293

Previous Page 292 Index Next Page 294

Function Reference

Page 293 of 750

DrawArcEx

Syntax:

SI32 pdfDrawArcEx(

const PPDF* IPDF,

// Instance pointer

double PosX,

// X-Coordinate of the midpoint of the arc

double PosY,

// Y-Coordinate of the midpoint of the arc

double Width,

// Width of the bounding rectangle

double Height,

// Height of the bounding rectangle

double StartAngle, // Start angle

double EndAngle)

// End angle

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 ClosePath() or StokePath() for further information).

The current point is connected with the start point and then updated to the end point of the ellipse.

The draw direction can be changed with the function SetDrawDirection(). The start and end angles

are always measured counter clockwise independent of the drawing direction.

Return values:

If the function succeeds the return value is 1. If the function fails the return value is 0.

DrawChord

Syntax:

SI32 pdfDrawChord(

const PPDF* IPDF,

// Instance pointer

double PosX,

// X-Coordinate of the midpoint of the chord

double PosY,

// Y-Coordinate of the midpoint of the chord

double Width,

// Width of the bounding rectangle

double Height,

// Height of the bounding rectangle

double StartAngle,

// Start angle

double EndAngle,

// End angle

TPathFillMode FillMode) // Fill mode

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 SetDrawDirection(). 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 ClipPath(). The parameter FillMode is ignored if the chord is drawn inside a clipping

path. The fill modes are described under ClosePath().

Previous topic: DrawArc

Next topic: DrawCircle