Blurry desktop icon using ClickOnce

断了今生、忘了曾经 提交于 2019-12-11 03:36:46

问题


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.

Image of icons: http://i.stack.imgur.com/WHD45.png

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.

Edit: 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?

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?


回答1:


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.

Also see:

Microsoft on icon sizes

Similar question



来源:https://stackoverflow.com/questions/17269425/blurry-desktop-icon-using-clickonce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!