Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB6 PictureBox SavePicture - save picture as png?

With VB6 PictureBox, how do I save to the png format?

like image 290
cabgef Avatar asked Dec 17 '25 19:12

cabgef


2 Answers

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.

like image 90
raven Avatar answered Dec 20 '25 03:12

raven


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.

like image 21
Joe Jordan Avatar answered Dec 20 '25 02:12

Joe Jordan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!