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

GdiGraphics.DrawPie Method (Pen, RectangleF, Single, Single)

Draws a pie shape.

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

Syntax

Visual Basic
Public Sub DrawPie ( _
	pen As Pen, _
	rect As RectangleF, _
	startAngle As Single, _
	sweepAngle As Single _
)
C#
public void DrawPie(
	Pen pen,
	RectangleF rect,
	float startAngle,
	float sweepAngle
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to outline a pie.
rect

Type: System.Drawing.RectangleF

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

Type: System.Single

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

Type: System.Single

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 fill a pie shape, use FillPie(Brush, RectangleF, Single, Single) method.

See Also

Reference