4

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

Nimantha
  • 6,405
  • 6
  • 28
  • 69
cfischer
  • 24,452
  • 37
  • 131
  • 214

5 Answers5

10

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=

Johan
  • 74,508
  • 24
  • 191
  • 319
Uwe Raabe
  • 45,288
  • 3
  • 82
  • 130
3

Try Delphi PNG and MNG libraries

Nimantha
  • 6,405
  • 6
  • 28
  • 69
Kenneth Cochran
  • 11,954
  • 3
  • 52
  • 117
2

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

Vegar
  • 12,828
  • 16
  • 85
  • 151
1

DevEx TCXImage component support PNG straight forward.

CXImage1.Picture.LoadFromFile(myimage.png)
andrewsi
  • 10,807
  • 132
  • 35
  • 51
1

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.

mj2008
  • 6,647
  • 2
  • 38
  • 56