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

PolyBezier2Polyline

PolyBezier2Polyline - convert an array of 4-Point Bezier into a Pointer Array of TPoint and a Count variable.

Declaration

Source position: graphmath.pp line 86

procedure PolyBezier2Polyline(

  Beziers: array of TBezier;

  var Points: PPoint;

  var Count: LongInt

); overload;

procedure PolyBezier2Polyline(

  Beziers: array of TPoint;

  var Points: PPoint;

  var Count: LongInt;

  Continuous: Boolean

); overload;

procedure PolyBezier2Polyline(

  Beziers: PPoint;

  BCount: LongInt;

  var Points: PPoint;

  var Count: LongInt;

  Continuous: Boolean

); overload;

Description

Use BezierToPolyline to convert an array of 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. Points is automatically initialized, so any existing information is lost, and the array starts at 0. Points should ALWAYS be Freed when done by calling to ReallocMem(Points, 0).