使用ClickOnce的模糊桌面图标 [英] Blurry desktop icon using ClickOnce

查看:94
本文介绍了使用ClickOnce的模糊桌面图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ClickOnce部署WPF应用程序,并且桌面图标模糊。有人知道如何解决此问题吗? .ico是32x32。

I'm deploying a WPF application using ClickOnce and the desktop icon is blurry. Does anybody have any information on how to fix this? The .ico is 32x32.

图标图片: http://i.stack.imgur.com/WHD45.png

左上角的原始.ico文件是由ClickOnce创建的桌面快捷方式,在下面显示标题栏,在下面是任务栏图标。

Original .ico file on the top left, right of that is the desktop shortcut created by ClickOnce, below that shows the titlebar, and on the bottom is the taskbar icon.

编辑:好的,首先让我通知您,原始图标不是正确的尺寸,显然仅编辑.ico不能解决该问题。当我从解决方案中删除.ico并将其添加回时,质量略有提高。我认为由于图标上缺少抗锯齿功能,所以改进程度没有我希望的好吗?我不太确定这是否可行,对我的无知感到抱歉,因为这不是我的强项,但是否可以在部署时为.ico添加抗锯齿功能?

Okay, so first let me inform you, the original icon was not the correct dimensions and apparently just editing the .ico doesn't fix that for the solution. When I removed the .ico from the solution and added it back the quality improved slightly. I think the improvement wasn't as great as I'd hoped due to the lack of anti-aliasing on the icon? I'm not quite sure if this is possible, and I'm sorry for my ignorance as this isn't my strong suit, but is it possible to add anti-aliasing to the .ico on deployment?

以下是更新后的图像的图像: http://i.stack.imgur.com/kRiFR.png

Here is the image of the updated image: http://i.stack.imgur.com/kRiFR.png

此外,如果不可能的话,创建一个使它们看起来更平滑的图标?

Also, if this isn't possible is there maybe a technique in the creation of an icon that makes them look smoother?

推荐答案

我可以建议您在256x256的原始图标中获得一个不错的版本.png格式,然后使用图标转换器,例如 http://convertico.com/ ,那么您在相同的.ico文件和Windows将选择最佳而不是调整大小。

May I suggest that you get a nice 256x256 version of your original icon in .png format and then use an icon converter e.g http://convertico.com/ Then you have multiple icon sizes in the same .ico file and windows will choose the best instead of resizing.

另请参阅:

Microsoft的图标尺寸

类似问题

这篇关于使用ClickOnce的模糊桌面图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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