Question

The TImage control doesn't support PNG. Is there some third party component that will?

Thanks!

Was it helpful?

Solution

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.

OTHER TIPS

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=

GraphicEx will give you support for both png's and many other formats.

DevEx TCXImage component support PNG straight forward.

CXImage1.Picture.LoadFromFile(myimage.png)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top