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 ForeColor property.

Notes

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

Example

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)