GraphicsPath.AddPie

AddPie(Rectangle, float, float)

Adds the outline of a pie shape to this path.

public void AddPie(Rectangle rect, float startAngle, float sweepAngle)
ParameterTypeDescription
rectRectangleA Rectangle that represents the bounding rectangle that defines the ellipse from which the pie is drawn.
startAngleSingleThe starting angle for the pie section, measured in degrees clockwise from the x-axis.
sweepAngleSingleThe angle between startAngle and the end of the pie section, measured in degrees clockwise from startAngle.

See Also


AddPie(float, float, float, float, float, float)

Adds the outline of a pie shape to this path.

public void AddPie(float x, float y, float width, float height, float startAngle, float sweepAngle)
ParameterTypeDescription
xSingleThe x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie is drawn.
ySingleThe y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie is drawn.
widthSingleThe width of the bounding rectangle that defines the ellipse from which the pie is drawn.
heightSingleThe height of the bounding rectangle that defines the ellipse from which the pie is drawn.
startAngleSingleThe starting angle for the pie section, measured in degrees clockwise from the x-axis.
sweepAngleSingleThe angle between startAngle and the end of the pie section, measured in degrees clockwise from startAngle.

See Also