AngleArc Method

Object List Next Object

Defined By:
Drawable

Description:

Draws a line segment and an arc.

Declaration:

Sub AngleArc(ByVal cx As Single, ByVal cy As Single, ByVal radius As Single, ByVal startAngle As Single, ByVal sweepAngle As Single)


Syntax Description


cx, cy Define the circle's center.

radius Defines the circle's radius.

startAngle Defines the arc's start angle.

sweepAngle Defines the arc's sweep angle.

Details:

First an unfilled line segment and arc are drawn, in that order, using the current pen. The line segment is drawn from the current position to the starting point of the arc.

The arc is drawn based on an imaginary circle with values specified by radius and center (cx, cy). The arc's start and end points are located by measuring counterclockwise from the circle's x- and y-axis by the number of degrees in the start and sweep angles, respectively. The value of the start and sweep angles determine the arc's length. A sweep angle exceeding 360 causes the arc to be swept several times.

When the AngleArc method is complete, the end point of the arc becomes the new current position.


Note: The arc drawn by this method may look elliptical in some instances.

See Also:
Arc method