This is a very small and quick sample application showing how to calculate a Bezier Curve and then display it to a canvas in Lazarus. The BezierCurve.pas unit that is included should be usable in all versions of Lazarus, Free Pascal, and Delphi.
The unit includes methods to calculate 2D Integer Point Arrays, 2D Float Point Arrays, and 3D Float Point Arrays that represent the slice points of the Bezier Curve. You can pass in the number of points you want to utilize, and a default of 20 is supplied.