Click or drag to resize
DrawingWindowDrawArc Method
Draws a circular arc of the specified radius, centered at (X, Y), from angle1 to angle2 (in degrees) clockwise. An angle of 0 would means an arc start at 3 o'clock

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DrawingVisual DrawArc(
	double x,
	double y,
	double radius,
	double angle1,
	double angle2
)

Parameters

x
Type: SystemDouble
the X-coordinate of the center of the circle
y
Type: SystemDouble
the Y-coordinate of the center of the circle
radius
Type: SystemDouble
the radius of the circle
angle1
Type: SystemDouble
the starting angle. 0 would mean an arc beginning at 3 o'clock.
angle2
Type: SystemDouble
the angle at the end of the arc. For example, if you want a 90 degree arc, then angle2 should be angle1 + 90.

Return Value

Type: DrawingVisual
A drawing visual as handle to the drawing
Exceptions
ExceptionCondition
ArgumentExceptionif {@code radius} is negative
See Also