Graphics.drawBezier

Overview | Methods | This Package | All Packages

Graphics.drawBezier

Draws one or more cubic Bezier curves by using the endpoints and control points specified by the array of Point objects.

Syntax

public final void drawBezier( Point[] points )

public final void drawBezier( Point[] points, RasterOp op )

Parameters

points

An array of Point objects that specify the starting, ending, and control points for the Bezier curves.

op

A RasterOp object that describes how to render the Bezier curves.

Remarks

The array in which you describe the Bezier curve that you want to draw must contain at least four elements. The first of these elements describes the first point in the curve, the fourth point describes the last point in the curve, and the second and third members describe the curves control points.

After the fourth member, you must add points in groups of three. The last point in the preceding Bezier curve becomes the first point in the next curve. The last member of the group of three becomes the curves end point, and the first and second members serve as its control points.