Graphics.FillPath メソッド
アセンブリ: System.Drawing (system.drawing.dll 内)



GraphicsPath は、直線および曲線の一連の線分で構成されます。path パラメータによって表されるパスが閉じられていない場合は、パスを閉じるために最後の点と最初の点を結ぶ線分が追加されます。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
Public Sub FillPathEllipse(ByVal e As PaintEventArgs) ' Create solid brush. Dim redBrush As New SolidBrush(Color.Red) ' Create graphics path object and add ellipse. Dim graphPath As New GraphicsPath graphPath.AddEllipse(0, 0, 200, 100) ' Fill graphics path to screen. e.Graphics.FillPath(redBrush, graphPath) End Sub
public void FillPathEllipse(PaintEventArgs e) { // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.Red); // Create graphics path object and add ellipse. GraphicsPath graphPath = new GraphicsPath(); graphPath.AddEllipse(0, 0, 200, 100); // Fill graphics path to screen. e.Graphics.FillPath(redBrush, graphPath); }
public: void FillPathEllipse( PaintEventArgs^ e ) { // Create solid brush. SolidBrush^ redBrush = gcnew SolidBrush( Color::Red ); // Create graphics path object and add ellipse. GraphicsPath^ graphPath = gcnew GraphicsPath; graphPath->AddEllipse( 0, 0, 200, 100 ); // Fill graphics path to screen. e->Graphics->FillPath( redBrush, graphPath ); }
public void FillPathEllipse(PaintEventArgs e) { // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.get_Red()); // Create graphics path object and add ellipse. GraphicsPath graphPath = new GraphicsPath(); graphPath.AddEllipse(0, 0, 200, 100); // Fill graphics path to screen. e.get_Graphics().FillPath(redBrush, graphPath); } //FillPathEllipse

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からGraphics.FillPath メソッドを検索する場合は、下記のリンクをクリックしてください。

- Graphics.FillPath メソッドのページへのリンク