简体   繁体   English

使用ClickOnce,任务栏图标看起来像素化

[英]Taskbar icon looks pixelated using ClickOnce

When I run my wpf application in debug mode, the icon on the taskbar looks fine (left image), but after I published and open the application, the icon looks pixelated (right image). 当我在调试模式下运行wpf应用程序时,任务栏上的图标看起来不错(左图),但是在我发布并打开该应用程序后,该图标看起来像是像素化(右图)。

在此处输入图片说明

I've referred to this link and I set the icon image to 256x256, but still looks pixelated. 我已经引用了此链接 ,并将图标图像设置为256x256,但仍然看起来像素化。

Please help. 请帮忙。

try using an ico editor to save the icon with all the correct resolutions (the OS will display the correct one). 尝试使用ico编辑器以所有正确的分辨率保存图标(操作系统将显示正确的分辨率)。 I use icofx, but there are many options if you google it - they should all correct your image proportions. 我使用icofx,但是如果您用google搜索,有很多选择-它们都应校正图像比例。 Most should have an equivalent option to the 'save windows icon' (in icofx) where you select all the resolutions you want to add to the file. 大多数文件都应具有与“保存窗口图标”(在icofx中)等效的选项,您可以在其中选择要添加到文件的所有分辨率。


Just another thought - is you icon a resource file? 另一个想法-您是资源文件图标吗? If so you may need to remove it then add it again and make sure the resource is set to publish correctly (so you are not using an old version). 如果是这样,您可能需要删除它,然后再次添加它,并确保将资源设置为正确发布(因此您没有使用旧版本)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM