Visual Basic 6 Image conversion from GIF to JPG or TIF

前端 未结 5 1559
慢半拍i
慢半拍i 2020-12-19 15:14

Language Visual Basic 6.

I want to know if there is an open source or existing Microsoft Image library that will allow me to convert a GIF (8 Bit Depth) image to ei

相关标签:
5条回答
  • 2020-12-19 15:36

    I've using this method using Intel's JPEG library. It will help you save your PictureBox as a JPEG. I am using this method in a production application and it works great.

    0 讨论(0)
  • 2020-12-19 15:41

    You might consider Windows® Image Acquisition Automation Library v2.0 Tool: Image acquisition and manipulation component for VB and scripting. There are plenty of examples of using it for image conversion, Google should turn up quite a few.

    0 讨论(0)
  • 2020-12-19 15:42

    ImageMagick is an excellent free open source image manipulation package. There is an OLE (ActiveX) control which you could use from VB6. I've never tried it myself - I always use the ImageMagick command line. I understand the control just takes the normal command lines anyway.

    The conversion command for gif to jpg would be something like this.

    convert my.gif my.jpg
    

    EDIT: ImageMagick is licensed under the GPL: if you use the control and redistribute your program, it's possible your program would have to be free open-source. Apparently it's not yet been legally tested whether dynamic linking to a GPL library or control invokes the GPL. You could always launch the ImageMagick command-line which to me should be safe [I am not a lawyer].

    0 讨论(0)
  • 2020-12-19 15:52

    I've been using this awesome code for 6 years with never a problem

    0 讨论(0)
  • 2020-12-19 15:53

    Use GDIPlus library! It's Windows's standart library.
    It converts to JPG , BMP , ICO and even to PNG, Transparent PNG and so on...
    Try googling Convert images using GDIPlus library.

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