[Overview][Types][Procedures and functions][Index] Reference for unit 'GraphMath' (#lcl)

Bezier2Polyline

Bezier2Polyline - convert a 4-Point Bezier into a Pointer Array of TPoint and a Count variable

Declaration

Source position: graphmath.pp line 58

procedure Bezier2Polyline(

  const Bezier: TBezier;

  var Points: PPoint;

  var Count: LongInt

);

Description

Method: Bezier2Polyline

Params:   Bezier, Points, Count
  Returns:  Nothing

  Use BezierToPolyline to convert a 4-Point Bezier into a Pointer Array of
  TPoint and a Count variable which can then be used within either a Polyline,
  or Polygon routine. It is primarily for use within PolyBezier2Polyline. If
  Points is not initialized or Count is less then 0, it is set to nil and
  the array starts at 0, otherwise it tries to append points
  to the array starting at Count. Points should ALWAYS be Freed when done
  by calling to ReallocMem(Points, 0) or FreeMem.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.