Frage

Eine der angekündigten Funktionen von Delphi 2009 war die PNG -Unterstützung. Das ist großartig, denn die Unicode -Probleme brechen die Pngimage.pas -Bibliothek, die ich zuvor verwendet habe. Das einzige Problem ist, ich kann nicht finden Die Version von Delphi 2009. Weiß jemand, wie es heißt und wie schwierig es ist, vorhandene PNGImage.pas-basierte Code in die neue Bibliothek zu migrieren?

War es hilfreich?

Lösung

All VCL image support in Delphi is provided via TImage. If you want to display a PNG image, simply drop a TImage control and then load a PNG image into the Picture property.

If you want to manipulate a PNG image in code (i.e., not display it) then you can add

pngimage

to your uses clause, and then use the TPNGImage class directly.

On my machine, PNGImage.pas is found at:

C:\Program Files\CodeGear\RAD Studio\6.0\source\Win32\vcl\Imaging\PNGImage\pngimage.pas

Andere Tipps

You can read png images into a TImage control. Just like gif, jpg, emf, wmf, bmp.

Not sure if that's what you want.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top