GraphicsPath.AddEllipseとは? わかりやすく解説

GraphicsPath.AddEllipse メソッド (RectangleF)

現在のパス楕円追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub AddEllipse ( _
    rect As RectangleF _
)
Dim instance As GraphicsPath
Dim rect As RectangleF

instance.AddEllipse(rect)
public void AddEllipse (
    RectangleF rect
)
public:
void AddEllipse (
    RectangleF rect
)
public void AddEllipse (
    RectangleF rect
)
public function AddEllipse (
    rect : RectangleF
)

パラメータ

rect

楕円定義する外接する四角形を表す RectangleF。

使用例使用例
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間

GraphicsPath.AddEllipse メソッド (Rectangle)

現在のパス楕円追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub AddEllipse ( _
    rect As Rectangle _
)
Dim instance As GraphicsPath
Dim rect As Rectangle

instance.AddEllipse(rect)
public void AddEllipse (
    Rectangle rect
)
public:
void AddEllipse (
    Rectangle rect
)
public void AddEllipse (
    Rectangle rect
)
public function AddEllipse (
    rect : Rectangle
)

パラメータ

rect

楕円定義する外接する四角形を表す Rectangle

使用例使用例

次のコード例は、Windows フォームでの使用意図してデザインされており、OnPaint イベント オブジェクトである PaintEventArgse が必要です。このコード次のアクション実行します

楕円定義する外接する四角形作成します

パス作成し、そのパス楕円追加します

画面パス描画ます。

Public Sub AddEllipseExample(ByVal
 e As PaintEventArgs)

    ' Create a path and add an ellipse.
    Dim myEllipse As New
 Rectangle(20, 20, 100, 50)
    Dim myPath As New GraphicsPath
    myPath.AddEllipse(myEllipse)

    ' Draw the path to the screen.
    Dim myPen As New Pen(Color.Black,
 2)
    e.Graphics.DrawPath(myPen, myPath)
End Sub
private void AddEllipseExample(PaintEventArgs
 e)
{
             
    // Create a path and add an ellipse.
    Rectangle myEllipse = new Rectangle(20, 20, 100, 50);
    GraphicsPath myPath = new GraphicsPath();
    myPath.AddEllipse(myEllipse);
             
    // Draw the path to the screen.
    Pen myPen = new Pen(Color.Black, 2);
    e.Graphics.DrawPath(myPen, myPath);
}
private:
   void AddEllipseExample( PaintEventArgs^ e )
   {
      // Create a path and add an ellipse.
      Rectangle myEllipse = Rectangle(20,20,100,50);
      GraphicsPath^ myPath = gcnew GraphicsPath;
      myPath->AddEllipse( myEllipse );

      // Draw the path to the screen.
      Pen^ myPen = gcnew Pen( Color::Black,2.0f );
      e->Graphics->DrawPath( myPen, myPath );
   }
private void AddEllipseExample(PaintEventArgs
 e)
{
    // Create a path and add an ellipse.
    Rectangle myEllipse = new Rectangle(20, 20, 100, 50);
    GraphicsPath myPath = new GraphicsPath();

    myPath.AddEllipse(myEllipse);

    // Draw the path to the screen.
    Pen myPen = new Pen(Color.get_Black(), 2);

    e.get_Graphics().DrawPath(myPen, myPath);
} //AddEllipseExample
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間

GraphicsPath.AddEllipse メソッド (Int32, Int32, Int32, Int32)

現在のパス楕円追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

使用例使用例
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間

GraphicsPath.AddEllipse メソッド

現在のパス楕円追加します
オーバーロードの一覧オーバーロードの一覧

名前 説明
GraphicsPath.AddEllipse (Rectangle) 現在のパス楕円追加します
GraphicsPath.AddEllipse (RectangleF) 現在のパス楕円追加します
GraphicsPath.AddEllipse (Int32, Int32, Int32, Int32) 現在のパス楕円追加します
GraphicsPath.AddEllipse (Single, Single, Single, Single) 現在のパス楕円追加します
参照参照

関連項目

GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間

GraphicsPath.AddEllipse メソッド (Single, Single, Single, Single)

現在のパス楕円追加します

名前空間: System.Drawing.Drawing2D
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

使用例使用例
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
GraphicsPath クラス
GraphicsPath メンバ
System.Drawing.Drawing2D 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からGraphicsPath.AddEllipseを検索した結果を表示しています。
Weblioに収録されているすべての辞書からGraphicsPath.AddEllipseを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からGraphicsPath.AddEllipse を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「GraphicsPath.AddEllipse」の関連用語

GraphicsPath.AddEllipseのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



GraphicsPath.AddEllipseのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS