RoundRect(X1,Y1,X2,Y2,X3,Y3)

Draws a rounded rectangle.

The rectangle has edges defined by the points (X1,Y1), (X2,Y1), (X2,Y2), (X1,Y2), but its corners are rounded. The curve of the rounded corners matches the curvature of an ellipse with width X3 and height Y3. The rounded rectangle is drawn using the current pen width and color.

Parameters
  • X1. Integer.
  • Y1. Integer.
  • X2. Integer.
  • Y2. Integer.
  • X3. Integer.
  • Y3. Integer.
Examples
Copy
Graphic.RoundRect(10,10,12,12,15,15);