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

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

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 PointF, _
	pt2 As PointF, _
	pt3 As PointF, _
	pt4 As PointF _
)
C#
public void DrawBezier(
	Pen pen,
	PointF pt1,
	PointF pt2,
	PointF pt3,
	PointF pt4
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to draw an spline.
pt1

Type: System.Drawing.PointF

Start spline point.
pt2

Type: System.Drawing.PointF

First control point.
pt3

Type: System.Drawing.PointF

Second control point.
pt4

Type: System.Drawing.PointF

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