在净转换TIFF文件,PNG [英] Converting TIFF files to PNG in .Net

查看:199
本文介绍了在净转换TIFF文件,PNG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须建立在.net(3.5)的应用程序拿起保存从另一个软件TIFF文件,并​​转换成PNG,以便它可以很容易地在Internet Explorer中呈现。有谁知道任何库(preferably免费/开源的),会做这种转换对我?

如果有不是得到一个PNG的任何简单的方法是有,我可以用它转换到另一个IE浏览器友好的图像格式的库?

我知道我可以通过一个TIFF到浏览器,并使用插件来呈现它,但个人电脑,这是针对被锁定而无法安装插件。

解决方案

  System.Drawing中。
    Bitmap.FromFile(你image.tif)
              .Save(你image.png,System.Drawing.Imaging.ImageFormat.Png);
 

请,还要检查这个:转换TIFF图像为GIF / JPEG

I have to build an application in .Net (3.5) to pick up a TIFF file saved from another piece of software and convert it into a PNG so that it can be rendered easily in Internet Explorer. Does anyone know of any libraries (preferably freeware/open source) that will do this conversion for me?

If there aren't any simple ways of getting it to a PNG are there any libraries that I can use to transform it to another IE friendly image format?

I know I can pass a TIFF to the browser and use a plugin to render it but the PCs this is aimed at are locked down and can't install plugins.

解决方案

System.Drawing.
    Bitmap.FromFile("your image.tif")
              .Save("your image.png", System.Drawing.Imaging.ImageFormat.Png);

Please, also check this: Convert Tiff Images to Gif/Jpeg

这篇关于在净转换TIFF文件,PNG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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