I have a little problem. I want to draw a closed polygon, but it doesn't work:

Code:
var
  image: TBGRABitmap;
  storedSpline: array of TPointF;
  c: TBGRAPixel;
begin
  image := TBGRABitmap.Create(ClientWidth,ClientHeight,ColorToBGRA(ColorToRGB(clBtnFace)));
  c := ColorToBGRA(ColorToRGB(clWindowText));

  setLength(storedSpline, 3);
  storedSpline[0].x := 50;
  storedSpline[0].y := 50;
  storedSpline[1].x := 100;
  storedSpline[1].y := 100;
  storedSpline[2].x := 0;
  storedSpline[2].y := 100;

  image.DrawPolylineAntialias(storedSpline,c,1, true); //This call should draw a closed spline

  image.Draw(Canvas,0,0,True);
  image.free;
end;
The last parameter is called Closed, so I presume that when I pass true, I will get a closed spline, but It's still open.
Anybody?