[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.DeviceContexts.DeviceContext.DrawArc

DrawArc Method

DrawArc(Point, uint, float, float)

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.

Declaration
public virtual void DrawArc(Point origin, uint radius, float startAngle, float sweepAngle)
Parameters
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.

Remarks

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.

Exceptions
Type Condition
SystemErrorException

DrawArc(Rectangle, Point, Point)

Draws an elliptical arc.

Declaration
public virtual void DrawArc(Rectangle rectangle, Point firstRadial, Point secondRadial)
Parameters
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.

Remarks

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.

Exceptions
Type Condition
SystemErrorException