Vcl.Direct2D.TDirect2DCanvas.Polygon

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

Delphi

procedure Polygon(const Points: array of TPoint); override;

C++

virtual void __fastcall Polygon(const System::Types::TPoint *Points, const int Points_High);

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
Vcl.Direct2D.pas
Vcl.Direct2D.hpp
Vcl.Direct2D TDirect2DCanvas

説明

引数で渡された点を直線でつなぎ、最後の点から最初の点まで直線を描画して、一連の直線で囲まれた図形をキャンバスに描画します。

Polygon を使用すると、Pen の値を使って、閉じた多辺形(多角形)をキャンバスに描画できます。図形が完成したら、Polygon は、Brush の値を使って図形の中を塗りつぶします。

Points パラメータは、多角形の頂点を指定する点の配列です。

多角形を塗りつぶさずにキャンバスに描画する場合は、Polyline メソッドを使用し、最初の点を最後にもう一度指定します。

関連項目