System.Drawing.Drawing2D.GraphicsPath.AddPie Method

Adds the outline of a pie shape to this path.

Syntax

public void AddPie (System.Drawing.Rectangle rect, float startAngle, float sweepAngle)

Parameters

rect
A System.Drawing.Rectangle that represents 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