Arc Method

Object List Next Object

Defined By:
Drawable

Description:

Draws an elliptical arc using the current pen.

Declaration:

Sub Arc(ByVal x1 As Single, ByVal y1 As Single, ByVal x2 As Single, ByVal y2 As Single, ByVal x3 As Single, ByVal y3 As Single, ByVal x4 As Single, ByVal y4 As Single)


Syntax Description


x1,y1, x2,y2 Defines the bounding rectangle.

x3,y3 Defines the first radial ending point.

x4,y4 Defines the second radial ending point.

Details:

The points x1, y1, x2, y2 specify the upper and lower parameters of the bounding rectangle. An ellipse created within the bounds of this rectangle is what creates the arc's curve. The arc is drawn counterclockwise from the intersection point of the arc with the radial from the center of the bounding rectangle to x3, y3. (A radial is a line segment drawn from the ellipse's center to the designated endpoint on the ellipse.)

The arc ends at its point of intersection with the radial, from the center of the bounding rectangle to x4, y4. If the start point and end point are the same, an entire ellipse is drawn.

Like AngleArc, the arc that results from this method is not filled. Unlike the AngleArc method, however, the Arc method does not use nor update the current position.

See Also:

AngleArc method, Chord method, Ellipse method, Pie method