简体   繁体   中英

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).

在此处输入图片说明

I've referred to this link and I set the icon image to 256x256, but still looks pixelated.

Please help.

try using an ico editor to save the icon with all the correct resolutions (the OS will display the correct one). I use icofx, but there are many options if you google it - they should all correct your image proportions. 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.


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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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