## オーバーロード

 AddBezier(Single, Single, Single, Single, Single, Single, Single, Single) 現在の図形に 3 次ベジエ曲線を追加します。Adds a cubic Bézier curve to the current figure. AddBezier(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32) 現在の図形に 3 次ベジエ曲線を追加します。Adds a cubic Bézier curve to the current figure. AddBezier(Point, Point, Point, Point) 現在の図形に 3 次ベジエ曲線を追加します。Adds a cubic Bézier curve to the current figure. AddBezier(PointF, PointF, PointF, PointF) 現在の図形に 3 次ベジエ曲線を追加します。Adds a cubic Bézier curve to the current figure.

## AddBezier(Single, Single, Single, Single, Single, Single, Single, Single)

``````public:
void AddBezier(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);``````
``public void AddBezier (float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);``
``member this.AddBezier : single * single * single * single * single * single * single * single -> unit``
``Public Sub AddBezier (x1 As Single, y1 As Single, x2 As Single, y2 As Single, x3 As Single, y3 As Single, x4 As Single, y4 As Single)``

x1
Single

y1
Single

x2
Single

y2
Single

x3
Single

y3
Single

x4
Single

y4
Single

### 注釈

2番目と3番目の点を制御点として使用することで、3番目の曲線を最初の点から4番目の点まで構築します。The cubic curve is constructed from the first point to the fourth point by using the second and third points as control points.

## AddBezier(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

``````public:
void AddBezier(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);``````
``public void AddBezier (int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);``
``member this.AddBezier : int * int * int * int * int * int * int * int -> unit``
``Public Sub AddBezier (x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer, x3 As Integer, y3 As Integer, x4 As Integer, y4 As Integer)``

x1
Int32

y1
Int32

x2
Int32

y2
Int32

x3
Int32

y3
Int32

x4
Int32

y4
Int32

### 例

• パスを作成します。Creates a path.

• ポイント (50、50)、(70、0)、(100、120)、および (150、50) によって定義された3次ベジエ曲線をパスに追加します。Adds a cubic Bézier curve defined by the points (50, 50), (70, 0), (100, 120), and (150, 50) to the path.

• 曲線を閉じます。Closes the curve.

• 画面にパスを描画します。Draws the path to screen.

``````private:
{
// Create a new Path.
GraphicsPath^ myPath = gcnew GraphicsPath;

myPath->StartFigure();
myPath->AddBezier( 50, 50, 70, 0, 100, 120, 150, 50 );

// Close the curve.
myPath->CloseFigure();

// Draw the path to screen.
e->Graphics->DrawPath( gcnew Pen( Color::Red,2.0f ), myPath );
}
``````
``````private void AddBezierExample(PaintEventArgs e)
{

// Create a new Path.
GraphicsPath myPath = new GraphicsPath();

myPath.StartFigure();
myPath.AddBezier(50, 50, 70, 0, 100, 120, 150, 50);

// Close the curve.
myPath.CloseFigure();

// Draw the path to screen.
e.Graphics.DrawPath(new Pen(Color.Red, 2), myPath);
}
``````
``````Public Sub AddBezierExample(ByVal e As PaintEventArgs)

' Create a new Path.
Dim myPath As New GraphicsPath

myPath.StartFigure()
myPath.AddBezier(50, 50, 70, 0, 100, 120, 150, 50)

' Close the curve.
myPath.CloseFigure()

' Draw the path to screen.
e.Graphics.DrawPath(New Pen(Color.Red, 2), myPath)
End Sub
``````

### 注釈

2番目と3番目の点を制御点として使用することで、3番目の曲線を最初の点から4番目の点まで構築します。The cubic curve is constructed from the first point to the fourth point by using the second and third points as control points.

### 適用対象

``````public:
void AddBezier(System::Drawing::Point pt1, System::Drawing::Point pt2, System::Drawing::Point pt3, System::Drawing::Point pt4);``````
``public void AddBezier (System.Drawing.Point pt1, System.Drawing.Point pt2, System.Drawing.Point pt3, System.Drawing.Point pt4);``
``member this.AddBezier : System.Drawing.Point * System.Drawing.Point * System.Drawing.Point * System.Drawing.Point -> unit``
``Public Sub AddBezier (pt1 As Point, pt2 As Point, pt3 As Point, pt4 As Point)``

pt1
Point

pt2
Point

pt3
Point

pt4
Point

### 注釈

2番目と3番目の点を制御点として使用することで、3番目の曲線を最初の点から4番目の点まで構築します。The cubic curve is constructed from the first point to the fourth point by using the second and third points as control points.

### 適用対象

``````public:
void AddBezier(System::Drawing::PointF pt1, System::Drawing::PointF pt2, System::Drawing::PointF pt3, System::Drawing::PointF pt4);``````
``public void AddBezier (System.Drawing.PointF pt1, System.Drawing.PointF pt2, System.Drawing.PointF pt3, System.Drawing.PointF pt4);``
``member this.AddBezier : System.Drawing.PointF * System.Drawing.PointF * System.Drawing.PointF * System.Drawing.PointF -> unit``
``Public Sub AddBezier (pt1 As PointF, pt2 As PointF, pt3 As PointF, pt4 As PointF)``

pt1
PointF

pt2
PointF

pt3
PointF

pt4
PointF

### 注釈

2番目と3番目の点を制御点として使用することで、3番目の曲線を最初の点から4番目の点まで構築します。The cubic curve is constructed from the first point to the fourth point by using the second and third points as control points.