Difference between revisions of "OvalShape"

From Xojo Documentation

(Example)
 
Line 12: Line 12:
  
 
==Example==
 
==Example==
Place the following method in the Paint event handler of a [[Window]]. It will draw an oval in the window when the user presses the mouse button.
+
Place the following method in the Paint event handler of a [[Window]]. It will draw an oval in the window whenever it updates:
 
 
 
<rbcode>
 
<rbcode>
 
Var o As New OvalShape
 
Var o As New OvalShape

Latest revision as of 21:44, 17 November 2020

Class (inherits from RectShape)

Used for drawing two-dimensional ellipses in a vector graphics environment.

Properties
BorderColor FillOpacity Segments
BorderOpacity Height Width
BorderWidth Rotation X
FillColor Scale Y

Example

Place the following method in the Paint event handler of a Window. It will draw an oval in the window whenever it updates:

Var o As New OvalShape
o.Width = 60
o.Height = 120

o.FillColor = RGB(127, 127, 255)
g.DrawObject(o, o.Width, o.Height)

See Also

ArcShape, CurveShape, FigureShape, FolderItem, Group2D, Graphics, Picture, PixmapShape, RectShape, RoundRectShape, TextShape classes.