Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
- pen
- System.Drawing.Pen that determines the color, width, and style of the pie shape.
- x
- The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
- y
- The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
- width
- Width of the bounding rectangle that defines the ellipse from which the pie shape comes.
- height
- Height of the bounding rectangle that defines the ellipse from which the pie shape comes.
- startAngle
- Angle measured in degrees clockwise from the x-axis to the first side of the pie shape.
- sweepAngle
- Angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.
This method draws a pie shape defined by an arc of an ellipse and the two radial lines that intersect with the endpoints of the arc. The ellipse is defined by the bounding rectangle described by the x, y, width, and height parameters. The pie shape consists of the two radial lines defined by the startAngle and sweepAngle parameters, and the arc between the intersections of those radial lines with the ellipse.
If the sweepAngle parameter is greater than 360 degrees or less than -360 degrees, it is treated as if it were 360 degrees or -360 degrees, respectively.