[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TCanvas.PolyBezier

Polybezier draws cubic Bezier curves

Declaration

Source position: line 0

public procedure TCanvas.PolyBezier(

  Points: PPoint;

  NumPts: Integer;

  Filled: Boolean = false;

  Continuous: Boolean = false

); virtual;

procedure TCanvas.PolyBezier(

  const Points: array of TPoint;

  Filled: Boolean = false;

  Continuous: Boolean = false

);

Description

Method: TCanvas.PolyBezier
Params: Points, Filled, Continous
Returns: Boolean

Use Polybezier to draw cubic Bezier curves.
The first curve is drawn from the first point to the fourth point with the second and third points being the control points.
If the Continuous flag is TRUE then each subsequent curve requires three more points, using the end-point of the previous Curve as its starting point, the first and second points being used as its control points, and the third point its end-point.

If the continous flag is set to FALSE, then each subsequent Curve requires 4 additional points, which are used exactly as in the first curve.

Any additonal points which do not add up to a full bezier(4 for Continuous, 3 otherwise) are ingored. There must be at least 4 points for an drawing to occur.

If the Filled Flag is set to TRUE then the resulting Poly-Bezier will be drawn as a Polygon.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.