FMX.Graphics.TCanvas.DrawPath

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

Delphi

procedure DrawPath(const APath: TPathData; const AOpacity: Single); overload;
procedure DrawPath(const APath: TPathData; const AOpacity: Single; const ABrush: TStrokeBrush); overload;

C++

void __fastcall DrawPath(TPathData* const APath, const float AOpacity)/* overload */;
void __fastcall DrawPath(TPathData* const APath, const float AOpacity, TStrokeBrush* const ABrush)/* overload */;

プロパティ

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


説明

パスを現在の TCanvas 上に描画します。

DrawPath は、TCanvas の子孫にて、TPathData を現在の Stroke で描画するよう実装します。

APath パラメータは、描画される TPathData を示します。

AOpacity パラメータは、Stroke色の透明度を指定します。

APath が空の場合、DrawPath は何もしません。この場合、DrawPath はエラーを発生させません。

メモ: DrawPath を呼び出す前に、APath が作成されていることを確認してください。

描画ペンをカスタマイズするには、Stroke プロパティを使用します。

関連項目

コード サンプル