Images PNG http://pngdelphi.sourceforge.net/
Images PNG http://pngdelphi.sourceforge.net/
"This is the official page for PNG Delphi component, a complete/free/source code library to read Portable Network Graphics images in Delphi/Object Pascal"
Attention ! Ce composant ne fonctionne pas sous delphi 2007
Ajouter pngimage dans les uses
Essaie le code suivant
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 procedure TForm1.BitBtn1Click(Sender: TObject); var Bitmap: TBitmap; PNG: TPNGObject; begin PNG := TPNGObject.Create; PNG.LoadFromFile('E:\sn.png'); Image1.Picture.Bitmap.Assign(PNG); PNG.Free; end;
Images PNG http://pngdelphi.sourceforge.net/ n'est plus valable
Partager