DrawEllipticArc

Vector graphics

Description

Draws an arc which is the result of cutting an ellipse between the start angle and the end angle. The angles are measured anti-clockwise with 0 being at the top of the ellipse. ie. 12 O'Clock = 0 degrees and 9 O'Clock is 90 degrees.

Syntax

Delphi

function TPDFlib.DrawEllipticArc(XPos, YPos, Width, Height, StartAngle, EndAngle: Double; Pie, DrawOptions: Integer): Integer;

ActiveX

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

DLL

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

Parameters

XPosThe horizontal co-ordinate of the center of the ellipse The vertical co-ordinate of the center of the ellipse
YPosThe width of the ellipse
Width
HeightThe height of the ellipse
StartAngleThe angle to start the curve at
EndAngleThe angle to end the curve at
PieDraw the arms of the arc: 0 = No 1 = Yes
DrawOptions0 = Outline 1 = Fill 2 = Fill and Outline 3 = Close, Fill and Outline (if Pie = 1) double EndAngle, int Pie, int DrawOptions);