With VB6 PictureBox, how do I save to the png format?
+3
A:
You can't. The VB6 PictureBox only supports Bitmap, icon, metafile, GIF, and JPEG image types. You'll need to use something else if you wish to work with PNG files. Perhaps the Windows Image Acquisition Automation Library would be of use to you.
raven
2010-09-20 18:44:08
+2
A:
Check out the cPNGWriter.cls file in LaVolpe's 32bpp Suite:
http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=67466&lngWId=1
As stated in the class comments, it does require zlib.
Joe
2010-09-21 08:39:49
A:
You can write a DLL to save in PNG in VB.Net and then call from VB6. From VB6 graphics guru Rod Stephens
MarkJ
2010-09-21 19:36:29
True, but that sorta defeats the purpose of using VB6 over .NET when you have to check for/install the .NET framework with your app.
Joe
2010-09-22 03:37:48
@Joe I see your point, but you might have an existing VB6 app that you wish to extend to support PNG.
MarkJ
2010-09-22 08:51:25