TTeeCanvas.RoundRect

TTeeCanvas.RoundRect
TTeeCanvas

procedure RoundRect(X1, Y1, X2, Y2, X3, Y3: Integer); virtual; abstract; overload;

Unit
TeCanvas

Description
Use RoundRect to draw a rounded rectangle using Pen and fill it with Brush. The rectangle will have edges defined by the points (X1,Y1), (X2,Y1), (X2,Y2), (X1,Y2), but the corners will be shaved to create a rounded appearance. The curve of the rounded corners matches the curvature of an ellipse with width X3 and height Y3.

To draw an ellipse instead, use Ellipse. To draw a true rectangle, use Rectangle.