From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

GraphicsPath.AddRoundRectangle(x As Double, y As Double, width As Double, height As Double, cornerWidth As Double, cornerHeight As Double)

New in 2019r2

Supported for all project types and targets.

Adds a rounded rectangle to the path.


Value Description
x The left position of the rectangle.
y The top position of the rectangle.
width The width of the rectangle.
height The height of the rectangle.
cornerWidth The width of the rounded corner sections.
cornerHeight The height of the rounded corner sections.

Sample Code

A simple rounded rectangle:

Var rect As New GraphicsPath
rect.AddRoundRectangle(10, 10, 100, 150, 10, 10)