FMX.Graphics.TCanvas.DrawDashRect

提供: RAD Studio API Documentation
移動先: 案内検索

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);

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TCanvas


説明

丸角の四角形を、標準 TStrokeBrush ペンを使用して、現在の TCanvas 上に描画します。


DrawDashRect は、丸角の四角形 ARect を、次のパラメータを持つ標準 TStrokeBrush ペンで描画します: AColor 色、Solid 色パターン、Dash 破線、ペン太さ 1 ピクセル。


ARect は、描画された四角形を示します。


XRadius は、水平方向での、四角形の角からカーブの開始点への距離を示します。 XRadius の最大値は、四角形の幅の半分です。


YRadius は、垂直方向での、四角形の角から丸みの開始点への距離を示します。 YRadius の最大値は、四角形の高さの半分です。


ACorners は、丸みを適用するを示します。 ACorners は、TCorner 型で定義されている次の定数のセットが格納されています: TopLeftTopRightBottomLeftBottomRight。 丸みをすべての角に適用するには、AllCorners 定数を使用します。


AOpacity は、アルファ色 AColor の透明度を示します。


AColor は、ペンのアルファ色を示します。

関連項目

コード サンプル