Draws a pie shape specified using an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
Syntax

[C#]

void DrawPie(Pen pen, double x, double y, double width, double height, double startAngle, double sweepAngle);
void DrawPie(Pen pen, RectangleF rect, double startAngle, double sweepAngle);

[Visual Basic]

Sub DrawPie(pen As Pen, x As Double, y As Double, width As Double, height As Double, startAngle As Double, sweepAngle As Double)
Sub DrawPie(pen As Pen, rect As RectangleF, startAngle As Double, sweepAngle As Double)
Params
Name Description
pen The pen to use for drawing the pie shape.
x The left coordinate of the bounding rectangle for the ellipse.
y The top coordinate of the bounding rectangle for the ellipse.
width The width of the bounding rectangle for the ellipse.
height The height of the bounding rectangle for the ellipse.
startAngle Angle from the x-axis to the start of the arc section. Angles are measured in degrees going clockwise from the x axis.
sweepAngle Angle from the start of the pie section to the end of it. Angles are measured in degrees going clockwise.
rect The bounding rectangle for the ellipse.
Notes

None.

Example

None.