cfischer
cfischer

Reputation: 24912

How can I display a transparent PNG on Delphi 2007?

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

Upvotes: 4

Views: 5740

Answers (5)

Kenneth Cochran
Kenneth Cochran

Reputation: 12114

Try Delphi PNG and MNG libraries

Upvotes: 3

Suren Sarathkumara
Suren Sarathkumara

Reputation: 11

DevEx TCXImage component support PNG straight forward.

CXImage1.Picture.LoadFromFile(myimage.png)

Upvotes: 1

Uwe Raabe
Uwe Raabe

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

mj2008
mj2008

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

Vegar
Vegar

Reputation: 12898

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

Upvotes: 2

Related Questions