How can i load PNG files? Any controls or API out there?
Basically I need to convert PNG to JPG.. any help appreciated!
Printable View
How can i load PNG files? Any controls or API out there?
Basically I need to convert PNG to JPG.. any help appreciated!
There are many different resources. I suggest going with a control that will output an hDC or an stdPicture so you can use all of the normal functions with it.
That's what I supposed but where can i find such a control?
You can check out the format of a PNG file on www.wotsit.org and see if you can manipulate the file yourself if you cannot find a control.
OK I found a DOS program which converts PNG to BMP so I can make JPG out of it... Looks bad but works ;)
Anyways, if someone knows a control or code snippet to load PNG files please let me know...
Take a look at libpng...it's available as a DLL so it can be used from VB.
hey fox, i know of a place you can find lots of png libraries... http://sourceforge.net its an open source development place,,
here is a link to what i found:
https://sourceforge.net/project/show...lease_id=22495
then from there unzip and compile the dll's your self... oh and you have to download both the libpng and zlib to get the dll's...or if you have ms visual studio 6, then you can ask me for them and ill send them over to ya... as far as documentation goes, im looking into that and ill update you on what functions to use and how to call them etc,..
here is the official site:
http://www.libpng.org/pub/png
here are some other sources but im afraid that these are commercial ones... :(
http://www.vbxtras.com/Search.asp?SearchWords=png
Ok, thanks, will have a look ;)