ComponentOne VSView 8.0
DrawEllipse Method (VSDraw)

Draws an ellipse, wedge, or arc.

Syntax

[form!]VSDraw.DrawEllipse X1 As Double, Y1 As Double, X2 As Double, Y2 As Double, [ Start As Variant ], [ End As Variant ]

Remarks

The parameters for the DrawEllipse method are described below:

Parameter

Description

X1, Y1

First corner of the rectangle that encloses the ellipse.

X2, Y2

Second corner of the rectangle that encloses the ellipse.

Start

Optional parameter that specifies the beginning position of an arc or wedge, in radians. If omitted, an ellipse is drawn.

End

Optional parameter that specifies the end position of an arc or wedge, in radians. If omitted, an ellipse 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.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback