This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.FillPie Method (Brush, Int32, Int32, Int32, Int32, Int32, Int32)

Fills a pie shape.

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

Syntax

Visual Basic
Public Sub FillPie ( _
	brush As Brush, _
	left As Integer, _
	top As Integer, _
	width As Integer, _
	height As Integer, _
	startAngle As Integer, _
	sweepAngle As Integer _
)
C#
public void FillPie(
	Brush brush,
	int left,
	int top,
	int width,
	int height,
	int startAngle,
	int sweepAngle
)

Parameters

brush

Type: Aurigma.GraphicsMill.Drawing.Brush

Brush object which is used to fill a pie.
left

Type: System.Int32

X-coordinate of the top left corner the bounding rectangle for the ellipse (see Remarks section).
top

Type: System.Int32

Y-coordinate of the top left corner of the bounding rectangle for the ellipse (see Remarks section).
width

Type: System.Int32

Width of the bounding rectangle for the ellipse (see Remarks section).
height

Type: System.Int32

Height of the bounding rectangle for the ellipse (see Remarks section).
startAngle

Type: System.Int32

An angle between x-axis and the first radial line which defines a sector on the ellipse.
sweepAngle

Type: System.Int32

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

Remarks

Pie is an arc + two lines connecting arc 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.

All the coordinates are measured in units specified with Unit property.

To outline a pie shape, use DrawPie(Pen, Single, Single, Single, Single, Single, Single) method.

See Also

Reference