Graphics.FillEllipse メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Graphics.FillEllipse メソッドの意味・解説 

Graphics.FillEllipse メソッド (Brush, Int32, Int32, Int32, Int32)

座標ペア、高さ、および幅で指定され外接する四角形によって定義される楕円描画ます。

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

例外例外
例外種類条件

ArgumentNullException

brushnull 参照 (Visual Basic では Nothing) です。

解説解説
使用例使用例

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

Public Sub FillEllipseInt(ByVal
 e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New
 SolidBrush(Color.Red)

    ' Create location and size of ellipse.
    Dim x As Integer = 0
    Dim y As Integer = 0
    Dim width As Integer
 = 200
    Dim height As Integer
 = 100

    ' Fill ellipse on screen.
    e.Graphics.FillEllipse(redBrush, x, y, width, height)
End Sub
public void FillEllipseInt(PaintEventArgs e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    // Create location and size of ellipse.
    int x = 0;
    int y = 0;
    int width = 200;
    int height = 100;
             
    // Fill ellipse on screen.
    e.Graphics.FillEllipse(redBrush, x, y, width, height);
}
public:
   void FillEllipseInt( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      // Create location and size of ellipse.
      int x = 0;
      int y = 0;
      int width = 200;
      int height = 100;

      // Fill ellipse on screen.
      e->Graphics->FillEllipse( redBrush, x, y, width, height );
   }
public void FillEllipseInt(PaintEventArgs e)
 
{
    // Create solid brush.
    SolidBrush redBrush =  new SolidBrush(Color.get_Red());

    // Create location and size of ellipse.
    int x = 0;
    int y = 0;
    int width = 200;
    int height = 100;

    // Fill ellipse on screen.
    e.get_Graphics().FillEllipse(redBrush, x, y, width, height);
} //FillEllipseInt
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.FillEllipse メソッド (Brush, Single, Single, Single, Single)

座標ペア、高さ、および幅で指定され外接する四角形によって定義される楕円描画ます。

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

例外例外
例外種類条件

ArgumentNullException

brushnull 参照 (Visual Basic では Nothing) です。

解説解説
使用例使用例

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

Public Sub FillEllipseFloat(ByVal
 e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New
 SolidBrush(Color.Red)

    ' Create location and size of ellipse.
    Dim x As Single = 0.0F
    Dim y As Single = 0.0F
    Dim width As Single
 = 200.0F
    Dim height As Single
 = 100.0F

    ' Fill ellipse on screen.
    e.Graphics.FillEllipse(redBrush, x, y, width, height)
End Sub
public void FillEllipseFloat(PaintEventArgs
 e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    // Create location and size of ellipse.
    float x = 0.0F;
    float y = 0.0F;
    float width = 200.0F;
    float height = 100.0F;
             
    // Fill ellipse on screen.
    e.Graphics.FillEllipse(redBrush, x, y, width, height);
}
public:
   void FillEllipseFloat( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      // Create location and size of ellipse.
      float x = 0.0F;
      float y = 0.0F;
      float width = 200.0F;
      float height = 100.0F;

      // Fill ellipse on screen.
      e->Graphics->FillEllipse( redBrush, x, y, width, height );
   }
public void FillEllipseFloat(PaintEventArgs
 e) 
{
    // Create solid brush.
    SolidBrush redBrush =  new SolidBrush(Color.get_Red());

    // Create location and size of ellipse.
    float x = 0;
    float y = 0;
    float width = 200;
    float height = 100;

    // Fill ellipse on screen.
    e.get_Graphics().FillEllipse(redBrush, x, y, width, height);
} //FillEllipseFloat
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.FillEllipse メソッド (Brush, RectangleF)

RectangleF 構造体指定され外接する四角形によって定義される楕円内部塗りつぶします。

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

Public Sub FillEllipse ( _
    brush As Brush, _
    rect As RectangleF _
)
Dim instance As Graphics
Dim brush As Brush
Dim rect As RectangleF

instance.FillEllipse(brush, rect)
public void FillEllipse (
    Brush brush,
    RectangleF rect
)
public:
void FillEllipse (
    Brush^ brush, 
    RectangleF rect
)
public void FillEllipse (
    Brush brush, 
    RectangleF rect
)
public function FillEllipse (
    brush : Brush, 
    rect : RectangleF
)

パラメータ

brush

塗りつぶし特性決定する Brush

rect

楕円定義する外接する四角形を表す RectangleF 構造体

例外例外
例外種類条件

ArgumentNullException

brushnull 参照 (Visual Basic では Nothing) です。

解説解説
使用例使用例

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

Public Sub FillEllipseRectangleF(ByVal
 e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New
 SolidBrush(Color.Red)

    ' Create rectangle for ellipse.
    Dim x As Single = 0.0F
    Dim y As Single = 0.0F
    Dim width As Single
 = 200.0F
    Dim height As Single
 = 100.0F
    Dim rect As New RectangleF(x,
 y, width, height)

    ' Fill ellipse on screen.
    e.Graphics.FillEllipse(redBrush, rect)
End Sub
public void FillEllipseRectangleF(PaintEventArgs
 e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    // Create rectangle for ellipse.
    float x = 0.0F;
    float y = 0.0F;
    float width = 200.0F;
    float height = 100.0F;
    RectangleF rect = new RectangleF(x, y, width, height);
             
    // Fill ellipse on screen.
    e.Graphics.FillEllipse(redBrush, rect);
}
public:
   void FillEllipseRectangleF( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      // Create rectangle for ellipse.
      float x = 0.0F;
      float y = 0.0F;
      float width = 200.0F;
      float height = 100.0F;
      RectangleF rect = RectangleF(x,y,width,height);

      // Fill ellipse on screen.
      e->Graphics->FillEllipse( redBrush, rect );
   }
public void FillEllipseRectangleF(PaintEventArgs
 e) 
{
    // Create solid brush.
    SolidBrush redBrush =  new SolidBrush(Color.get_Red());

    // Create rectangle for ellipse.
    float x = 0;
    float y = 0;
    float width = 200;
    float height = 100;
    RectangleF rect =  new RectangleF(x, y, width, height);

    // Fill ellipse on screen.
    e.get_Graphics().FillEllipse(redBrush, rect);
} //FillEllipseRectangleF
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.FillEllipse メソッド (Brush, Rectangle)

Rectangle 構造体指定され外接する四角形によって定義される楕円内部塗りつぶします。

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

Public Sub FillEllipse ( _
    brush As Brush, _
    rect As Rectangle _
)
Dim instance As Graphics
Dim brush As Brush
Dim rect As Rectangle

instance.FillEllipse(brush, rect)
public void FillEllipse (
    Brush brush,
    Rectangle rect
)
public:
void FillEllipse (
    Brush^ brush, 
    Rectangle rect
)
public void FillEllipse (
    Brush brush, 
    Rectangle rect
)
public function FillEllipse (
    brush : Brush, 
    rect : Rectangle
)

パラメータ

brush

塗りつぶし特性決定する Brush

rect

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

例外例外
例外種類条件

ArgumentNullException

brushnull 参照 (Visual Basic では Nothing) です。

解説解説
使用例使用例

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

Public Sub FillEllipseRectangle(ByVal
 e As PaintEventArgs)

    ' Create solid brush.
    Dim redBrush As New
 SolidBrush(Color.Red)

    ' Create rectangle for ellipse.
    Dim x As Integer = 0
    Dim y As Integer = 0
    Dim width As Integer
 = 200
    Dim height As Integer
 = 100
    Dim rect As New Rectangle(x,
 y, width, height)

    ' Fill ellipse on screen.
    e.Graphics.FillEllipse(redBrush, rect)
End Sub
public void FillEllipseRectangle(PaintEventArgs
 e)
{
             
    // Create solid brush.
    SolidBrush redBrush = new SolidBrush(Color.Red);
             
    // Create rectangle for ellipse.
    int x = 0;
    int y = 0;
    int width = 200;
    int height = 100;
    Rectangle rect = new Rectangle(x, y, width, height);
             
    // Fill ellipse on screen.
    e.Graphics.FillEllipse(redBrush, rect);
}
public:
   void FillEllipseRectangle( PaintEventArgs^ e )
   {
      // Create solid brush.
      SolidBrush^ redBrush = gcnew SolidBrush( Color::Red );

      // Create rectangle for ellipse.
      int x = 0;
      int y = 0;
      int width = 200;
      int height = 100;
      Rectangle rect = Rectangle(x,y,width,height);

      // Fill ellipse on screen.
      e->Graphics->FillEllipse( redBrush, rect );
   }
public void FillEllipseRectangle(PaintEventArgs
 e) 
{
    // Create solid brush.
    SolidBrush redBrush =  new SolidBrush(Color.get_Red());

    // Create rectangle for ellipse.
    int x = 0;
    int y = 0;
    int width = 200;
    int height = 100;
    Rectangle rect =  new Rectangle(x, y, width, height);

    // Fill ellipse on screen.
    e.get_Graphics().FillEllipse(redBrush, rect);
} //FillEllipseRectangle
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.FillEllipse メソッド




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

辞書ショートカット

すべての辞書の索引

「Graphics.FillEllipse メソッド」の関連用語

Graphics.FillEllipse メソッドのお隣キーワード
検索ランキング

   

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



Graphics.FillEllipse メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS