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

GdiGraphics.DrawArc Method (Pen, Int32, Int32, Int32, Int32, Single, Single)

Draws an arc.

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

Syntax

Visual Basic
Public Sub DrawArc ( _
	pen As Pen, _
	x As Integer, _
	y As Integer, _
	width As Integer, _
	height As Integer, _
	startAngle As Single, _
	sweepAngle As Single _
)
C#
public void DrawArc(
	Pen pen,
	int x,
	int y,
	int width,
	int height,
	float startAngle,
	float sweepAngle
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to draw an arc.
x

Type: System.Int32

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

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.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

Arc is a part of the ellipse. In this method arc is defined with a tightest bounding rectangle of this ellipse and two angles which specifies necessary ellipse sector.

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

See Also

Reference