Show: Delphi C++
Display Preferences

FMX.Types.TCanvas.FillRect

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure FillRect(const ARect: TRectF; const XRadius, YRadius: Single; const ACorners: TCorners;  const AOpacity: Single; const ACornerType: TCornerType = TCornerType.ctRound); virtual; abstract;

C++

virtual void __fastcall FillRect(const System::Types::TRectF &ARect, const float XRadius, const float YRadius, const TCorners ACorners, const float AOpacity, const TCornerType ACornerType = (TCornerType)(0x0)) = 0 ;

Contents

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TCanvas

Description

Fills a rectangle with customized corners, and displays it on the current TCanvas.

FillRect is implemented by TCanvas descendants to fill--with the current brush specified by the Fill property--a TRectF with customized corners.

The ARect parameter specifies the rectangle to be filled.

The XRadius parameter specifies the distance from a corner to the start point of the customization, on the horizontal side. The maximum value of XRadius is half of the rectangle's width. If it is bigger, its maximum value is used.

The YRadius parameter specifies the distance from a corner to the start point of the customization on the vertical side. The maximum value of YRadius is half of the rectangle's height. If it is bigger, its maximum value is used.

The ACorners parameter specifies the corners to apply the customization to. To apply the customization to all the corners, use the AllCorners constant.

The AOpacity parameter specifies the transparency of the Fill color.

The ACornerType optional parameter specifies the corners' types. By default, it is ctRound.

DrawRectCanvas.png


See Also

Code Examples

Personal tools
Previous Versions
Translations