[]
Draws a line segment and an arc.
The line segment is drawn from the position which is defined by radius
and startAngle
.
The arc is drawn along the perimeter of a circle with the given radius and center.
The length of the arc is defined by the given start and sweep angles.
public virtual void DrawArc(Point origin, uint radius, float startAngle, float sweepAngle)
Type | Name | Description |
---|---|---|
Point | origin | A Point specifies the center of the circle. |
uint | radius | A uint specifies the radius of the circle. This value must be positive. |
float | startAngle | A float specifies the start angle, in degrees. |
float | sweepAngle | A float specifies the sweep angle, in degrees, relative to the starting angle. |
The arc is drawn by constructing an imaginary circle around the specified center point with the specified radius. The starting point of the arc is determined by measuring counterclockwise from the x-axis of the circle by the number of degrees in the start angle. The ending point is similarly located by measuring counterclockwise from the starting point by the number of degrees in the sweep angle. If the sweep angle is greater than 360 degrees,the arc is swept multiple times.
Type | Condition |
---|---|
SystemErrorException |
Draws an elliptical arc.
public virtual void DrawArc(Rectangle rectangle, Point firstRadial, Point secondRadial)
Type | Name | Description |
---|---|---|
Rectangle | rectangle | A Rectangle specifies the bounding rectangle. |
Point | firstRadial | A Point specifies the ending point of the radial line defining the starting point of the arc. |
Point | secondRadial | A Point specifies the ending point of the radial line defining the ending point of the arc. |
The rectangle
specify the bounding rectangle. An ellipse formed by the specified bounding rectangle
defines the curve of the arc. The arc extends in the current drawing direction from the point where it intersects
the radial from the center of the bounding rectangle to the firstRadial
point. The arc ends where
it intersects the radial from the center of the bounding rectangle to the secondRadial
point.
If the starting point and ending point are the same, a complete ellipse is drawn.
Type | Condition |
---|---|
SystemErrorException |