FMX.Types.TCanvas.FillRect
Delphi
procedure FillRect(const ARect: TRectF; const XRadius, YRadius: Single; const ACorners: TCorners; const AOpacity: Single; const ACornerType: TCornerType = TCornerType.ctRound); overload; procedure FillRect(const ARect: TRectF; const XRadius, YRadius: Single; const ACorners: TCorners; const AOpacity: Single; const ABrush: TBrush; const ACornerType: TCornerType = TCornerType.ctRound); overload;
C++
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))/* overload */; void __fastcall FillRect(const System::Types::TRectF &ARect, const float XRadius, const float YRadius, const TCorners ACorners, const float AOpacity, TBrush* const ABrush, const TCornerType ACornerType = (TCornerType)(0x0))/* overload */;
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.
See Also
- FMX.Types.TCanvas.FillArc
- FMX.Types.TCanvas.FillEllipse
- FMX.Types.TCanvas.FillPolygon
- FMX.Types.TCanvas.FillPath
- FMX.Types.TCanvas.FillText
- FMX.Types.TCanvas.DrawRect
- FMX.Types.TCanvas.Fill
- FMX.Types.TCornerType
- FMX.Types.TCorners
- FMX.Types.AllCorners
