This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.DrawBezier Method (Pen, Point, Point, Point, Point)

Draws a cubic Bezier spline.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub DrawBezier ( _
	pen As Pen, _
	pt1 As Point, _
	pt2 As Point, _
	pt3 As Point, _
	pt4 As Point _
)
C#
public void DrawBezier(
	Pen pen,
	Point pt1,
	Point pt2,
	Point pt3,
	Point pt4
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to draw an spline.
pt1

Type: System.Drawing.Point

Start spline point.
pt2

Type: System.Drawing.Point

First control point.
pt3

Type: System.Drawing.Point

Second control point.
pt4

Type: System.Drawing.Point

End spline point.

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.

All the coordinates are measured in units specified with Unit property.

See Also

Reference