Control Reference > VSDraw Control > VSDraw Methods > DrawCircle Method (VSDraw) |
Draws a circle, circular wedge, or circular arc.
[form!]VSDraw.DrawCircle CenterX As Double, CenterY As Double, Radius As Double, [ Start As Variant ], [ End As Variant ]
The parameters for the DrawCircle method are described below:
Parameter |
Description |
CenterX |
X coordinate of the center of the circle, arc, or wedge. |
CenterY |
Y coordinate of the center of the circle, arc, or wedge. |
Radius |
Radius of the circle, arc, or wedge. |
Start |
Optional parameter that specifies the beginning position of an arc or wedge, in radians. If omitted, a circle is drawn. |
End |
Optional parameter that specifies the end position of an arc or wedge, in radians. If omitted, a circle is drawn. |
All graphical objects are drawn with the current pen and filled with the current brush. Pen and brush attributes are defined with the PenColor, PenStyle, PenWidth, BrushColor, and BrushStyle properties.
If the Start and End parameters are not specified, a circle is drawn. If they are specified, an arc or wedge are drawn depending on the setting of the BrushStyle property. If the BrushStyle is set to bsTransparent, an arc is drawn. Otherwise, a wedge is drawn (a wedge is just a filled arc.)
The CenterX, CenterY, and Radius parameters are specified in scale units, defined by the ScaleWidth, ScaleHeight, ScaleLeft, and ScaleHeight properties.
The Start and End parameters are measured counter-clockwise, starting from the 3 o'clock position.