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

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

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, _
	x1 As Single, _
	y1 As Single, _
	x2 As Single, _
	y2 As Single, _
	x3 As Single, _
	y3 As Single, _
	x4 As Single, _
	y4 As Single _
)
C#
public void DrawBezier(
	Pen pen,
	float x1,
	float y1,
	float x2,
	float y2,
	float x3,
	float y3,
	float x4,
	float y4
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to draw an spline.
x1

Type: System.Single

X-coordinate of the start spline point.
y1

Type: System.Single

Y-coordinate of the start spline point.
x2

Type: System.Single

X-coordinate of the first control point.
y2

Type: System.Single

Y-coordinate of the first control point.
x3

Type: System.Single

X-coordinate of the second control point.
y3

Type: System.Single

Y-coordinate of the second control point.
x4

Type: System.Single

X-coordinate of the end spline point.
y4

Type: System.Single

Y-coordinate of the 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