Recent

Author Topic: [SOLVED] TBGRABitmap filter  (Read 2119 times)

BubikolRamios

  • Sr. Member
  • ****
  • Posts: 350
[SOLVED] TBGRABitmap filter
« on: January 02, 2025, 01:12:13 am »
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][+][-]
  1.       image := TBGRABitmap.Create(Bitmap);
  2.       image.FilterGrayscale();
  3.       //PaintBox1.canvas.Clear;
  4.       PaintBox1.canvas.Draw(0,0,image.Bitmap);  
  5.  
« Last Edit: January 02, 2025, 01:16:04 am by BubikolRamios »
lazarus 3.2-fpc-3.2.2-win32/win64

BubikolRamios

  • Sr. Member
  • ****
  • Posts: 350
Re: TBGRABitmap filter
« Reply #1 on: January 02, 2025, 01:15:00 am »
ahh, right.

Code: Pascal  [Select][+][-]
  1. image := image.FilterGrayscale();
  2.  
lazarus 3.2-fpc-3.2.2-win32/win64

 

TinyPortal © 2005-2018