[SOLVED] TBGRABitmap filter lazarus / 39-Graphics ---------------------------------------------------------------------- BubikolRamios · 2025-01-02 00:12 if canvas clear is executed then it is clear that image has graphic, but it is not changed in any way by filter. Any clue ? 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       image := TBGRABitmap.Create(Bitmap);      image.FilterGrayscale();      //PaintBox1.canvas.Clear;      PaintBox1.canvas.Draw(0,0,image.Bitmap); ---------------------------------------------------------------------- BubikolRamios · 2025-01-02 00:15 ahh, right. 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 image := image.FilterGrayscale();