DrawPie
Vector graphics
Description
Draws a closed circular pie slice from the centre point to the arc start point, along the arc, and back to the centre point
Syntax
Delphi
Function TPDFlib.DrawPie(XPos, YPos, Radius, StartAngle, EndAngle: Double; DrawOptions: Integer): Integer;
ActiveX
Function PDFlib::DrawPie(XPos As Double, YPos As Double, Radius As Double, StartAngle As Double, EndAngle As Double, DrawOptions As Long) As Long
DLL
int DLDrawPie(int InstanceID, double XPos, double YPos, double Radius, double StartAngle, double EndAngle, int DrawOptions);
Parameters
| XPos | The horizontal co-ordinate of the pie centre |
|---|---|
| YPos | The vertical co-ordinate of the pie centre |
| Radius | The circular arc radius 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 pie path was drawn |
Remarks
Use DrawChord when the closing segment should run directly from the arc end point to the arc start point instead of through the centre