Graphics.DrawPie Method (Pen, Int32, Int32, Int32, Int32, Single, Single)

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

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public void DrawPie(
	Pen pen,
	int x,
	int y,
	int width,
	int height,
	float startAngle,
	float sweepAngle
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

A Pen that determines the color, width, and style of the pie shape.
x

Type: System.Int32

The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
y

Type: System.Int32

The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie shape comes.
width

Type: System.Int32

The width of the bounding rectangle that defines the ellipse from which the pie shape comes.
height

Type: System.Int32

The height of the bounding rectangle that defines the ellipse from which the pie shape comes.
startAngle

Type: System.Single

The angle measured in degrees clockwise from the x-axis to the first side of the pie shape.
sweepAngle

Type: System.Single

The angle measured in degrees clockwise from the startAngle parameter to the second side of the pie shape.

Remarks

Pie is an arc and two lines connecting this arc's ends with the center of the ellipse. In other words pie is defined with a tightest bounding rectangle of the ellipse and two angles which specifies necessary ellipse sector.

To fill a pie shape, use FillPie(Brush, Int32, Int32, Int32, Int32, Single, Single) method.

See Also

Reference