在C / C中将.PNG转换为.ICO# [英] converting .PNG to .ICO in C/C#

查看:123
本文介绍了在C / C中将.PNG转换为.ICO#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将.PNG文件转换为.ICO文件。我想在本地做任何互联网依赖(所以我不能使用像converttoico.com等在线工具)。

I want to convert .PNG files to .ICO files. I want to do it locally with out any internet dependency (so I can't use online tools like converttoico.com etc).

我找到了一个很棒的工具叫做png2ico,但它有一个限制,它只能将大小为1X1的图像转换为256X256。虽然目前我正在修改PNG分辨率(在C#中)并将其压缩到256X256,然后使用此工具将其转换为图标,但图像质量一点都不好。

I found a wonderful tool called png2ico, but it has a restriction that it can only convert images of size 1X1 to 256X256. Although for now, I am modifying the PNG resolution (in C#) and compressing it to 256X256, and then using this tool to convert it to icon, but the image quality is not good at all.

有没有人知道任何本地图书馆这样做或任何可以帮助我的工具(免费或付费)?

Does any one know of any native library for doing this or any tool (free or paid) that can help me?

谢谢。

推荐答案

你可以使用可以将png转换为ico的ImageMagick库,你可以在这里找到imageMagick for .NET: http://imagemagick.codeplex.com/

You can use ImageMagick library that can convert png to ico , you can find imageMagick for .NET here : http://imagemagick.codeplex.com/ .

如果您需要程序,你可以在批处理模式下尝试使用IrFanView ...

If you need a program to do that you can try with IrFanView in batch mode ...

这篇关于在C / C中将.PNG转换为.ICO#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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