OvalShape → RectShape → Object2D → Object

ArcShape Class

Used for drawing arcs in a vector graphics environment.

Properties
ArcAngle
StartAngle

# Notes

A StartAngle of 0 means due east, i.e., or a positive X value with Y=0. Positive angles are clockwise, just as with Object2D.rotation. The value of ArcAngle can be positive or negative, extending from the starting angle. If the angle is filled, it produces a wedge; this may be useful for making pie charts, for example.

# Examples

The following method, when called from the Paint event of a Window, creates an arc. Group2D

Dim a as New ArcShape
a.arcAngle=1.57
a.startAngle=-1.57
a.FillColor=RGB(255,0,127)
g.drawObject a,100,100

# See Also

CurveShape, FigureShape, FolderItem, Graphics, Group2D, Object2D, OvalShape, Picture, PixmapShape, RectShape, RoundRectShape, StringShape classes.