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




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

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.DrawPath メソッドを検索する場合は、下記のリンクをクリックしてください。

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