Graphics.DrawOval

From Xojo Documentation

Method

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.

Notes

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

Sample Code

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

g.PenSize = 5
g.DrawOval(10, 10, 100, 60)