Hello everybody. These day, I'm working on PAM to integrate it in my launcher (ASuite) as new menu and I conceived to add png support. Therefore I'm looking for a component to read png files.
I found this component: ImageFileLib ( https://sourceforge.net/projects/imagefilelib/ ), released under no license (public domain?). I tried to convert a png to bmp and load it in a TImage component. It seem works fine.
I used this simple code (in form's event create):
procedure TForm1.FormCreate(Sender: TObject); var PNG :TPNGGraphic; BMP :TBitmap; begin BMP :=TBitmap.Create; PNG :=TPNGGraphic.Create; try PNG.LoadFromFile('xyz.png'); BMP.Assign(PNG); Image1.Picture.Bitmap := BMP; finally BMP.Free; PNG.Free; end; end;