DrawEllipticPie
Vector graphics
Description
Draws a closed elliptic pie slice from the ellipse centre to the arc start point, along the arc, and back to the centre point
Syntax
Delphi
Function TPDFlib.DrawEllipticPie(XPos, YPos, Width, Height, StartAngle, EndAngle: Double; DrawOptions: Integer): Integer;
ActiveX
Function PDFlib::DrawEllipticPie(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 DLDrawEllipticPie(int InstanceID, double XPos, double YPos, double Width, double Height, double StartAngle, double EndAngle, int DrawOptions);
Parameters
| XPos | The horizontal co-ordinate of the ellipse centre |
|---|---|
| YPos | The vertical co-ordinate of the ellipse centre |
| Width | The ellipse width in the current measurement unit |
| Height | The ellipse height in the current measurement unit |
| StartAngle | The start angle in degrees |
| EndAngle | The end angle in degrees |
| DrawOptions | 0 = outline, 1 = fill, 2 = fill and outline |
Return values
| 0 | The angle span or draw option was invalid |
|---|---|
| 1 | The elliptic pie path was drawn |
Remarks
Use DrawEllipticChord when the closing segment should connect the arc endpoints directly