Graphics.DrawBezier Method (Pen, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Draws a Bezier spline defined by four ordered pairs of coordinates that represent points.

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

Syntax

C#
public void DrawBezier(
	Pen pen,
	int x1,
	int y1,
	int x2,
	int y2,
	int x3,
	int y3,
	int x4,
	int y4
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

A Pen that determines the color, width, and style of the curve.
x1

Type: System.Int32

The x-coordinate of the starting point of the curve.
y1

Type: System.Int32

The y-coordinate of the starting point of the curve.
x2

Type: System.Int32

The x-coordinate of the first control point for the curve.
y2

Type: System.Int32

The y-coordinate of the first control point for the curve.
x3

Type: System.Int32

The x-coordinate of the second control point for the curve.
y3

Type: System.Int32

The y-coordinate of the second control point for the curve.
x4

Type: System.Int32

The x-coordinate of the ending point of the curve.
y4

Type: System.Int32

The y-coordinate of the ending point of the curve.

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.

See Also

Reference