A bug ? lazarus / 21-General ---------------------------------------------------------------------- BubikolRamios · 2025-01-04 15:24 See last two lines of code, first says expected tPoint got Trect ..., does not want to compile The second works fine. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  procedure TForm1.Button24Click(Sender: TObject);var   Bitmap: Tbitmap;   image: TBGRABitmap;   Source: TRect;   Dest: TRect;begin   Bitmap := TBitmap.Create;    try    with Bitmap do    begin      Width := PaintBox1.Width;      Height := PaintBox1.Height;      Dest := Rect(0, 0, Width, Height);    end;    with PaintBox1 do      Source := Rect(0, 0, Width, Height);       Bitmap.Canvas.CopyRect(Dest, PaintBox1.Canvas, Source);       image := image.FilterTwirl(Dest,round(Height/2));      image := image.FilterTwi rl(Rect(0,0,Width,Height),Point(round(Width/2),round(Height/2)),round( Height/2)); ---------------------------------------------------------------------- Remy Lebeau · 2025-01-05 04:25 The bug is yours. The 1st line does not match either of the available overloads of FilterTwirl(). But the 2nd line matches the 2nd overload. Code: [Select]function FilterTwirl(ACenter: TPoint; ARadius: Single; ATurn: Single=1; AExponent: Single=3; ACopyProperties: Boolean=False): TBGRACustomBitmap; overload; virtual; abstract; function FilterTwirl(ABounds: TRect; ACenter: TPoint; ARadius: Single; ATurn: Single=1; AExponent: Single=3; ACopyProperties: Boolean=False): TBGRACustomBitmap; overload; virtual; abstract;