DrawEllipticChord

Vector graphics

Description

Draws an elliptic arc and closes it with a straight chord between the arc end point and arc start point

Syntax

Delphi

Function TPDFlib.DrawEllipticChord(XPos, YPos, Width, Height, StartAngle, EndAngle: Double; DrawOptions: Integer): Integer;

ActiveX

Function PDFlib::DrawEllipticChord(XPos As Double, YPos As Double, Width As Double, Height As Double, StartAngle As Double, EndAngle As Double, DrawOptions As Long) As Long

DLL

int DLDrawEllipticChord(int InstanceID, double XPos, double YPos, double Width, double Height, double StartAngle, double EndAngle, int DrawOptions);

Parameters

XPosThe horizontal co-ordinate of the ellipse centre
YPosThe vertical co-ordinate of the ellipse centre
WidthThe ellipse width in the current measurement unit
HeightThe ellipse height in the current measurement unit
StartAngleThe start angle in degrees
EndAngleThe end angle in degrees
DrawOptions0 = outline, 1 = fill, 2 = fill and outline

Return values

0The angle span or draw option was invalid
1The elliptic chord path was drawn

Remarks

Use DrawEllipticPie when the shape should close through the ellipse centre