FMX.Graphics.TCanvas.DrawDashRect
Delphi
procedure DrawDashRect(const ARect: TRectF; const XRadius, YRadius: Single; const ACorners: TCorners; const AOpacity: Single; const AColor: TAlphaColor);
C++
void __fastcall DrawDashRect(const System::Types::TRectF &ARect, const float XRadius, const float YRadius, const Fmx::Types::TCorners ACorners, const float AOpacity, const System::Uitypes::TAlphaColor AColor);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TCanvas |
Description
Draws a rectangle with rounded corners, using the standard TStrokeBrush pen, on the current TCanvas.
DrawDashRect draws the ARect
rectangle with rounded corners, with the standard TStrokeBrush pen, which has the following parameters: AColor
color, Solid color pattern, Dash dashed line, and 1 pixel pen thickness.
ARect
specifies the rectangle to be drawn.
XRadius
specifies the distance from a rectangle corner to the start point of the rounding on horizontal sides. The maximum value of XRadius
is half of the rectangle's width.
YRadius
specifies the distance from a rectangle corner to the start point of the rounding on vertical sides. The maximum value of YRadius
is half of the rectangle's height.
ACorners
specifies the corners to apply rounding to. ACorners
can contain a set of constants defined in the TCorner type: TopLeft
, TopRight
, BottomLeft
, and BottomRight
. To apply rounding to all corners, use the AllCorners constant.
AOpacity
specifies the transparency of the AColor
alpha color.
AColor
specifies the alpha color for the pen.
See Also
- System.Types.TRectF
- FMX.Graphics.TStrokeBrush
- System.UITypes.TAlphaColor
- FMX.Graphics.TCanvas.DrawRect
- FMX.Graphics.TCanvas.DrawRectSides
- FMX.Graphics.TCanvas.DrawLine
- FMX.Graphics.TCanvas.DrawPath
- FMX.Graphics.TCanvas.FillRect
- FMX.Graphics.TStrokeBrush
- FMX.Types.TCornerType
- FMX.Types.TCorners
- FMX.Types.AllCorners