Graphics.FillPie Method (Brush, Rectangle, Single, Single)

Fills the interior of a pie section defined by an ellipse specified by a Rectangle structure and two radial lines.

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

Syntax

C#
public void FillPie(
	Brush brush,
	Rectangle rect,
	float startAngle,
	float sweepAngle
)

Parameters

brush

Type: Aurigma.GraphicsMill.Drawing.Brush

A Brush that determines the characteristics of the fill.
rect

Type: System.Drawing.Rectangle

A Rectangle structure that represents the bounding rectangle that defines the ellipse from which the pie section comes.
startAngle

Type: System.Single

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

Type: System.Single

An angle between first and second radial line which defines a sector on the ellipse.

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 outline a pie shape, use DrawPie(Pen, Rectangle, Single, Single) method.

See Also

Reference