Sign in Join
FPDoc Onlineexperiment

PolyBezier2Polyline procedure

In unit GraphMath

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

Declaration

pascal
procedure PolyBezier2Polyline
 (Beziers: Array of TBezier = Array[0..3] of TFloatPoint = record
 X: Extended;
 Y: Extended;
end
; 
 var Points: PPoint; var Count: LongInt)
 ; 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).

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.