---
title: "Graphics.DrawBezier Method (Pen, Single, Single, Single, Single, Single, Single, Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Graphics_DrawBezier_9_9dfa3001.htm
product: "Graphics Mill"
---

# Graphics.DrawBezier Method (Pen, Single, Single, Single, Single, Single, Single, Single, Single)
 
Draws a Bezier spline defined by four ordered pairs of coordinates that represent points.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public void DrawBezier(Pen pen,float x,float y,float controlX1,float controlY1,float controlX2,float controlY2,float endX,float endY
)
```
 
### Parameters
 
 - pen
     - Type: [Aurigma.GraphicsMill.Drawing.Pen](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Pen.htm.md)
A [Pen](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Pen.htm.md) that determines the color, width, and style of the curve.

 - x
     - Type: System.Single
The x-coordinate of the starting point of the curve.

 - y
     - Type: System.Single
The y-coordinate of the starting point of the curve.

 - controlX1
     - Type: System.Single
The x-coordinate of the first control point for the curve.

 - controlY1
     - Type: System.Single
The y-coordinate of the first control point for the curve.

 - controlX2
     - Type: System.Single
The x-coordinate of the second control point for the curve.

 - controlY2
     - Type: System.Single
The y-coordinate of the second control point for the curve.

 - endX
     - Type: System.Single
The x-coordinate of the ending point of the curve.

 - endY
     - Type: System.Single
The y-coordinate of the ending point of the curve.
 
## Remarks
  
A Bezier spline is defined with four points: first and last point specify beginning and end of the curve, second and third points specify so-called control points. The control points act as magnets, pulling the curve in certain directions to influence the way the Bezier spline bends.
 
## Examples
  
```csharp
using (var bitmap = new Bitmap(160, 120, PixelFormat.Format24bppRgb, RgbColor.White))
using (var graphics = bitmap.GetGraphics()) 
{
    graphics.DrawBezier(new Pen(RgbColor.Black), 10, 60, 40, 20, 70, 60, 100, 20); 
    bitmap.Save(@"Images\Output\out.png");
}
```
   
## See Also

### Reference

- [Graphics Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Graphics.htm.md)
- [DrawBezier Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Drawing_Graphics_DrawBezier.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)

### Manual

- [Graphics: Drawing Images and Geometric Shapes](https://www.graphicsmill.com/docs/gm/graphics.htm.md)
