Inno Setup taskbar icon blurred

空扰寡人 提交于 2019-12-06 14:23:39

问题


For non 96 DPI taskbar icon (SetupIconFile) during install is blurred(stretched?)

I'm not sure, but I'm sure ico file has all possible icons in it: 16/32 bit + all sizes from 16x16 to 256x256.

Same icon works well in my application with all DPI.

Windows 7
120 (144) DPI
http://www.filedropper.com/test_27 - icon

Setup and application running simultaneously:


回答1:


For 125% zoom (120 DPI) you need 40x40 icon (= 32x32 * 125%)

If you do not have one, the Inno Setup will probably use upscaled 32x32 icon.

Your application seems to use a different strategy, maybe downscaling 48x48 icon.


Not sure why you should have problem on 150% zoom (144 DPI), as you have 48x48 icon (= 32x32 * 150%).

I've tested your icon in a simple installer and it indeed shows a nice icon on 150% zoom (tested on Windows 7).


In my installer, I have an .ico file with these sizes: 16, 20, 24, 32, 40, 48, 60, 64.

This nicely covers all needs for up to 200% zoom (192 DPI).


Also, it's possible that there is a difference between Ansi and Unicode versions of Inno Setup. They are based on different versions of Delphi, possibly using different strategies for selecting the icon. That may explain why you have problems on 150% zoom, while I do not.

I'm using Unicode version, which is based on over a decade newer version of Delphi (Delphi 2009 vs. Delphi 2 from 1996).



来源:https://stackoverflow.com/questions/34332293/inno-setup-taskbar-icon-blurred

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