Show/Hide Toolbars

RiverSoftAVG Products Help

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

TFMXCanvasHelper.Rectangle(TRectF,Single) Method

Scroll Prev Top Next More

Draws a rectangle on the canvas.

Use Rectangle to draw a rectangle using    Pen and fill it with    Brush. Specify the rectangle's coordinates in one of two ways:

Giving four coordinates that define the upper left corner at the point (X1, Y1) and the lower right corner at the point (X2, Y2).

Using a TRect type.

To fill a rectangular region without drawing the boundary in the current pen, use    FillRect. To outline a rectangular region without filling it, use    FrameRect or    Polygon. To draw a rectangle with rounded corners, use    RoundRect.

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

Rect

Type: TRectF

Opacity

Type: Single

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb