Control Reference > VSPrinter Control > VSPrinter Methods > DrawCircle Method (VSPrinter) |
Draws a circle, circular wedge, or circular arc.
[form!]VSPrinter.DrawCircle CenterX As Variant, CenterY As Variant, Radius As Variant, [ 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 may be specified with units (inches, points, twips, cm, mm, or pixels). The default unit is twips. For details on using unit-aware measurements, see the Using Unit-Aware Properties topic.
The Start and End parameters are measured counter-clockwise, starting from the 3 o'clock position.