Files
docs-desktop/dotnet-desktop-guide/framework/winforms/advanced/how-to-draw-a-sequence-of-bezier-splines.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.7 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Draw a Sequence of Bézier Splines 03/30/2017
csharp
vb
splines [Windows Forms], drawing Bezier
Bezier splines [Windows Forms], drawing sequence of
37a0bedb-20c2-4cf0-91fa-a5509e826b30

How to: Draw a Sequence of Bézier Splines

You can use the xref:System.Drawing.Graphics.DrawBeziers%2A method of the xref:System.Drawing.Graphics class to draw a sequence of connected Bézier splines.

Example

The following example draws a curve that consists of two connected Bézier splines. The endpoint of the first Bézier spline is the start point of the second Bézier spline.

The following illustration shows the connected splines along with the seven points:

Graphic that shows the connected splines along with seven points.

[!code-csharpSystem.Drawing.ConstructingDrawingCurves#11] [!code-vbSystem.Drawing.ConstructingDrawingCurves#11]

Compiling the Code

The preceding example is designed for use with Windows Forms, and it requires xref:System.Windows.Forms.PaintEventArgs e, which is a parameter of the xref:System.Windows.Forms.Control.Paint event handler.

See also