Recent

Author Topic: Change PNG depth  (Read 798 times)

AsleyCruz

  • Full Member
  • ***
  • Posts: 118
    • Graphic and web designer
Change PNG depth
« on: April 02, 2023, 04:55:49 pm »
Hi coders :)

Is there a way to change the PNG depth image using BGRAbitmap?
Thanks in advance.

Code: Pascal  [Select][+][-]
  1. var
  2.   MyPNG : TBGRAbitmap;
  3. begin
  4.   MyPNG := TBGRAbitmap.create('old image.png');
  5.   MyPNG.SaveToFile ('new image.jpg');
  6.   MyPNG.free;
  7. end;
Graphic & web designer

lainz

  • Hero Member
  • *****
  • Posts: 4743
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: Change PNG depth
« Reply #1 on: April 02, 2023, 05:24:01 pm »
Yes there is, but I've never used it so I don't know. Search the forums, 'color quantizer' or something like that.

 

TinyPortal © 2005-2018