Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSFMXCommon > FMX.RS.CanvasHelper > Classes > TFMXCanvasHelper > Methods

TFMXCanvasHelper.RoundRect(Single,Single,Single,Single,Single,Single,Single) Method

Scroll Prev Top Next More

Draws a rectangle with rounded corners on the canvas.

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.

alert_noteTip

This FMX version of the method adds a default Opacity parameter at the end of the parameters. This allows you to take advantage of the FMX ability to draw transparently to the canvas. Alternatively, don't set this parameter and it works exactly like the VCL TCanvas method.

Namespace: FMX.RS.CanvasHelper

Parameters

X1

Type: Single

Y1

Type: Single

X2

Type: Single

Y2

Type: Single

X3

Type: Single

Y3

Type: Single

Opacity

Type: Single

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb