Visual Basic 6从GIF到JPG或TIF的图像转换 [英] Visual Basic 6 Image conversion from GIF to JPG or TIF

查看:185
本文介绍了Visual Basic 6从GIF到JPG或TIF的图像转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

语言Visual Basic 6。

Language Visual Basic 6.

我想知道是否有开源或现有的Microsoft Image库,
允许我转换GIF (8位深度)图像为以下任一项:JPG,TIF。

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 either one of the following: JPG, TIF.

我目前正在使用Imaging for Windows V2.7 API。我最近才发现它不支持所有GIF类型的图像。

I am currently using Imaging for Windows V2.7 API. I only found recently it does't support all the GIF type images.

我发现99%的GIF图像都没有问题。请注意,图像没有损坏,我可以使用其他成像工具打开它。

I found that 99% of the GIF images get processed with no issue. Please note that the image is not broken and I am able to open it with a other imaging tool.

谢谢。

推荐答案

ImageMagick 是一款出色的免费开源图像处理软件包。您可以从VB6中使用 OLE(ActiveX)控件。我自己从未尝试过 - 我总是使用ImageMagick命令行。我知道控件只需要正常的命令行。

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.

转换命令就是这样的。

convert my.gif my.jpg

编辑:ImageMagick是根据GPL许可的:如果您使用该控件并重新分发您的程序,那么您的程序可能必须是免费的开源程序。 显然尚未经过合法测试,是否动态链接到GPL库或控件是否会调用GPL。你总是可以启动ImageMagick命令行,这对我来说应该是安全的[我不是律师]。

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].

这篇关于Visual Basic 6从GIF到JPG或TIF的图像转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆