Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TOpenPictureDialog & .png

Status
Not open for further replies.

dominochmiel

Programmer
Jan 28, 2003
40
PL
Hi. I've got a small problem. I want to open png file. I wrote a programme using TOpenDialog(it works perfectly) But when I use TOpenPictureDialog it shows me exception EInvalidGraphic. Can anybody tell me how to repair this!
 
I had the same problem with jpeg and gif images in an OpenPictureDialog some time ago, see: thread101-450100 you can see in jpeg.hpp which functions you need to make png work.

Another option: In my case I needed TJpegImage and TGifImage, try to use to search for TPngImage.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top