System.Drawing.Drawing2D.GraphicsPath.AddPie Method

Adds the outline of a pie shape to this path.

Syntax

public void AddPie (int x, int y, int width, int height, float startAngle, float sweepAngle)

Parameters

x
The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie is drawn.
y
The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie is drawn.
width
The width of the bounding rectangle that defines the ellipse from which the pie is drawn.
height
The height of the bounding rectangle that defines the ellipse from which the pie is drawn.
startAngle
The starting angle for the pie section, measured in degrees clockwise from the x-axis.
sweepAngle
The angle between startAngle and the end of the pie section, measured in degrees clockwise from startAngle.

Remarks

The pie shape is defined by a partial outline of an ellipse and the two radial lines that intersect the endpoints of the partial outline. The partial outline begins at startAngle (measured clockwise from the x-axis) and ends at startAngle + sweepAngle.

Requirements

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0