GraphicsPath.AddEllipse Yöntem

Tanım

Geçerli yola üç nokta ekler.

Aşırı Yüklemeler

AddEllipse(Rectangle)

Geçerli yola üç nokta ekler.

AddEllipse(RectangleF)

Geçerli yola üç nokta ekler.

AddEllipse(Int32, Int32, Int32, Int32)

Geçerli yola üç nokta ekler.

AddEllipse(Single, Single, Single, Single)

Geçerli yola üç nokta ekler.

AddEllipse(Rectangle)

Kaynak:
GraphicsPath.cs
Kaynak:
GraphicsPath.cs
Kaynak:
GraphicsPath.cs

Geçerli yola üç nokta ekler.

public:
 void AddEllipse(System::Drawing::Rectangle rect);
public void AddEllipse (System.Drawing.Rectangle rect);
member this.AddEllipse : System.Drawing.Rectangle -> unit
Public Sub AddEllipse (rect As Rectangle)

Parametreler

rect
Rectangle

Rectangle Üç noktayı tanımlayan sınırlayıcı dikdörtgeni temsil eden bir.

Örnekler

Aşağıdaki kod örneği, Windows Forms ile kullanılmak üzere tasarlanmıştır ve bir OnPaint olay nesnesi gerektirir.PaintEventArgse Kod aşağıdaki eylemleri gerçekleştirir:

Üç nokta tanımlayan sınırlayıcı bir dikdörtgen oluşturur.

Bir yol oluşturur ve üç noktayı yola ekler.

Ekranın yolunu çizer.

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.Black, 2);
    e.Graphics.DrawPath(myPen, myPath);
}
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

Şunlara uygulanır

AddEllipse(RectangleF)

Kaynak:
GraphicsPath.cs
Kaynak:
GraphicsPath.cs
Kaynak:
GraphicsPath.cs

Geçerli yola üç nokta ekler.

public:
 void AddEllipse(System::Drawing::RectangleF rect);
public void AddEllipse (System.Drawing.RectangleF rect);
member this.AddEllipse : System.Drawing.RectangleF -> unit
Public Sub AddEllipse (rect As RectangleF)

Parametreler

rect
RectangleF

RectangleF Üç noktayı tanımlayan sınırlayıcı dikdörtgeni temsil eden bir.

Örnekler

Örnek için bkz. AddEllipse(Rectangle)

Şunlara uygulanır

AddEllipse(Int32, Int32, Int32, Int32)

Kaynak:
GraphicsPath.cs
Kaynak:
GraphicsPath.cs
Kaynak:
GraphicsPath.cs

Geçerli yola üç nokta ekler.

public:
 void AddEllipse(int x, int y, int width, int height);
public void AddEllipse (int x, int y, int width, int height);
member this.AddEllipse : int * int * int * int -> unit
Public Sub AddEllipse (x As Integer, y As Integer, width As Integer, height As Integer)

Parametreler

x
Int32

Üç noktayı tanımlayan sınırlayıcı dikdörtgenin sol üst köşesinin x koordinatı.

y
Int32

Üç noktayı tanımlayan sınırlayıcı dikdörtgenin sol üst köşesinin y koordinatı.

width
Int32

Üç noktayı tanımlayan sınırlayıcı dikdörtgenin genişliği.

height
Int32

Üç noktayı tanımlayan sınırlayıcı dikdörtgenin yüksekliği.

Örnekler

Örnek için bkz. AddEllipse(Rectangle)

Şunlara uygulanır

AddEllipse(Single, Single, Single, Single)

Kaynak:
GraphicsPath.cs
Kaynak:
GraphicsPath.cs
Kaynak:
GraphicsPath.cs

Geçerli yola üç nokta ekler.

public:
 void AddEllipse(float x, float y, float width, float height);
public void AddEllipse (float x, float y, float width, float height);
member this.AddEllipse : single * single * single * single -> unit
Public Sub AddEllipse (x As Single, y As Single, width As Single, height As Single)

Parametreler

x
Single

Üç noktayı tanımlayan sınırlayıcı dikdörtgenin sol üst köşesinin x koordinatı.

y
Single

Üç noktayı tanımlayan sınırlayıcı dikdörtgenin sol üst köşesinin y koordinatı.

width
Single

Üç noktayı tanımlayan sınırlayıcı dikdörtgenin genişliği.

height
Single

Üç noktayı tanımlayan sınırlayıcı dikdörtgenin yüksekliği.

Örnekler

Örnek için bkz. AddEllipse(Rectangle)

Şunlara uygulanır