简体   繁体   English

Inno Setup任务栏图标模糊

[英]Inno Setup taskbar icon blurred

For non 96 DPI taskbar icon ( SetupIconFile ) during install is blurred(stretched?) 对于非96 DPI任务栏图标( SetupIconFile )在安装过程中模糊(拉伸?)

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. 我不确定,但是我确定ico文件中包含所有可能的图标:16/32位+所有尺寸(从16x16到256x256)。

Same icon works well in my application with all DPI. 在所有DPI中,相同的图标在我的应用程序中均能很好地工作。

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

Setup and application running simultaneously: 安装程序和应用程序同时运行:

设置和应用程序同时运行

For 125% zoom (120 DPI) you need 40x40 icon (= 32x32 * 125%) 要获得125%的缩放比例(120 DPI),您需要40x40的图标(= 32x32 * 125%)

If you do not have one, the Inno Setup will probably use upscaled 32x32 icon. 如果您没有,Inno Setup可能会使用放大的32x32图标。

Your application seems to use a different strategy, maybe downscaling 48x48 icon. 您的应用程序似乎使用了不同的策略,可能是缩小了48x48图标的尺寸。


Not sure why you should have problem on 150% zoom (144 DPI), as you have 48x48 icon (= 32x32 * 150%). 不知道为什么在150%缩放(144 DPI)时会有问题,因为您有48x48图标(= 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). 我已经在一个简单的安装程序中测试了您的图标,它确实在150%缩放下显示了一个漂亮的图标(在Windows 7上测试)。

在此处输入图片说明


In my installer, I have an .ico file with these sizes: 16, 20, 24, 32, 40, 48, 60, 64. 在安装程序中,我有一个.ico文件,其大小为:16、20、24、32、40、48、60、64。

This nicely covers all needs for up to 200% zoom (192 DPI). 这很好地满足了高达200%缩放(192 DPI)的所有需求。


Also, it's possible that there is a difference between Ansi and Unicode versions of Inno Setup. 另外,Inno Setup的Ansi和Unicode版本之间可能会有所不同。 They are based on different versions of Delphi, possibly using different strategies for selecting the icon. 它们基于不同版本的Delphi,可能使用不同的策略来选择图标。 That may explain why you have problems on 150% zoom, while I do not. 这可以解释为什么您在150%变焦上有问题,而我没有。

I'm using Unicode version, which is based on over a decade newer version of Delphi (Delphi 2009 vs. Delphi 2 from 1996). 我使用的是Unicode版本,它基于十多年来更新的Delphi版本(Delphi 2009与1996年的Delphi 2)。

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

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