VB6 PictureBox SavePicture - save picture as png?

前端 未结 4 980
逝去的感伤
逝去的感伤 2021-01-14 10:33

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

相关标签:
4条回答
  • 2021-01-14 11:02

    You can write a DLL to save in PNG in VB.Net and then call from VB6. From VB6 graphics guru Rod Stephens

    0 讨论(0)
  • 2021-01-14 11:08

    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.

    0 讨论(0)
  • 2021-01-14 11:16

    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.

    0 讨论(0)
  • 2021-01-14 11:25

    The best and easiest way - use the GDIPlus Library. If you don't know how, google it

    0 讨论(0)
提交回复
热议问题