Difference between revisions of "Graphics.DrawOval"

From Xojo Documentation

m
m
 
Line 8: Line 8:
 
}}
 
}}
 
{{Description
 
{{Description
|text = Draws the outline of an oval in the current color. The current color is set with the ForeColor property.}}
+
|text = Draws the outline of an oval in the current color. The current color is set with the [[Graphics.DrawingColor|DrawingColor]] property.}}
  
 
== Notes ==
 
== Notes ==

Latest revision as of 16:15, 20 April 2020

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.

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)