[]
Draw the special arc by using the given pen
public void DrawArc(Pen pen, Rectangle rectangle, float startAngle, float sweepAngle)
Type | Name | Description |
---|---|---|
Pen | pen | A Pen indicate the draw-style of arc |
Rectangle | rectangle | A Rectangle indicates the bounding rectangle which center is the center of ellipse |
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 |