From Xojo Documentation

Revision as of 16:15, 20 April 2020 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Graphics.DrawOval(X as Integer, Y as Integer, Width as Integer, Height as Integer)

Supported for all project types and targets.

Draws the outline of an oval in the current color. The current color is set with the DrawingColor property.


X and Y are the coordinates of the top-left corner. Width and Height specify the size of the oval.


The following example sets the PenWidth and PenHeight and draws the oval. The code is in the Paint event of a Canvas.

g.PenHeight = 5
g.PenWidth = 1

g.DrawOval(10, 10, 100, 60)