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

Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.

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

Syntax

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

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

Type: System.Int32

The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.
y

Type: System.Int32

The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.
width

Type: System.Int32

The width of the rectangle that defines the ellipse.
height

Type: System.Int32

The height of the rectangle that defines the ellipse.
startAngle

Type: System.Single

The angle in degrees measured clockwise from the x-axis to the starting point of the arc.
sweepAngle

Type: System.Single

The angle in degrees measured clockwise from the startAngle parameter to ending point of the arc.

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 specify necessary ellipse sectors.

See Also

Reference