Reputation: 24912
The TImage control doesn't support PNG. Is there some third party component that will?
Upvotes: 4
Views: 5740
Reputation: 11
DevEx TCXImage component support PNG straight forward.
CXImage1.Picture.LoadFromFile(myimage.png)
Upvotes: 1
Reputation: 47819
Try PngComponents - as long as they are available...
A D2009 version can be found here
EDIT
On Google code the following link for older versions of Delphi:
http://code.google.com/p/cubicexplorer/downloads/detail?name=PngComponents.zip&can=2&q=
Upvotes: 10
Reputation: 6757
I have successfully used the TPaintBox component with the DevExpress TcxImageList which supports PNGs, and then drawn the images in the OnPaint using the list's facilities. Worked well. DevEx also have a TcxImage, but I've not tried that.
Upvotes: 1