--- title: "How to: Draw a Single Bézier Spline" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "Bezier splines [Windows Forms], drawing" - "drawing [Windows Forms], Bezier splines" ms.assetid: f4f3fe30-f0a6-4743-ac91-11310cebea9f --- # How to: Draw a Single Bézier Spline A Bézier spline is defined by four points: a start point, two control points, and an endpoint. ## Example The following example draws a Bézier spline with start point (10, 100) and endpoint (200, 100). The control points are (100, 10) and (150, 150). The following illustration shows the resulting Bézier spline along with its start point, control points, and endpoint. The illustration also shows the spline's convex hull, which is a polygon formed by connecting the four points with straight lines. ![Illustration of a Bezier Spline.](./media/how-to-draw-a-single-bezier-spline/bezier-spline-illustration.png) [!code-csharp[System.Drawing.ConstructingDrawingCurves#31](~/samples/snippets/csharp/VS_Snippets_Winforms/System.Drawing.ConstructingDrawingCurves/CS/Class1.cs#31)] [!code-vb[System.Drawing.ConstructingDrawingCurves#31](~/samples/snippets/visualbasic/VS_Snippets_Winforms/System.Drawing.ConstructingDrawingCurves/VB/Class1.vb#31)] ## Compiling the Code The preceding example is designed for use with Windows Forms, and it requires `e`, which is a parameter of the event handler. ## See also - - [Bézier Splines in GDI+](bezier-splines-in-gdi.md) - [How to: Draw a Sequence of Bézier Splines](how-to-draw-a-sequence-of-bezier-splines.md)