Skip to main content
Pie
ra0

TcxCanvas.PolyBezierTo(TPoint[]) Method

Draws a series of interconnected Bezier curves on the canvas and updates the pen position.

Declaration

procedure PolyBezierTo(const Points: array of TPoint);

Parameters

Name Type
Points TPoint

Remarks

Call this procedure and pass an array of points as the Points parameter to draw a series of interconnected cubic Bezier curves. The array must contain at least four points, since the PolyBezierTo procedure draws a curve between the first and fourth points and uses the second and third points as control points for this segment. Each subsequent segment requires only three additional points, since it starts at the end of the preceding segment. If the Points array does not contain enough points to draw a whole number of curve segments, the PolyBezierTo procedure draws all completely defined segments and ignores any remaining points.

The PolyBezierTo procedure uses the Pen settings to draw Bezier curves and moves the pen position to the end point of the last curve segment.

See Also