Input for WinForms | ComponentOne
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / RawDeviceContext Class / DrawArc Method / DrawArc(Point,UInt32,Single,Single) Method
A System.Drawing.Point specifies the center of the circle.
A uint specifies the radius of the circle. This value must be positive.
A float specifies the start angle, in degrees.
A float specifies the sweep angle, in degrees, relative to the starting angle.

In This Topic
    DrawArc(Point,UInt32,Single,Single) Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Overloads Sub DrawArc( _
       ByVal origin As Point, _
       ByVal radius As UInteger, _
       ByVal startAngle As Single, _
       ByVal sweepAngle As Single _
    ) 
    public void DrawArc( 
       Point origin,
       uint radius,
       float startAngle,
       float sweepAngle
    )

    Parameters

    origin
    A System.Drawing.Point specifies the center of the circle.
    radius
    A uint specifies the radius of the circle. This value must be positive.
    startAngle
    A float specifies the start angle, in degrees.
    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.
    See Also