我的Windows应用程序的图标应包含哪些图标大小? [英] Which icon sizes should my Windows application's icon include?

查看:820
本文介绍了我的Windows应用程序的图标应包含哪些图标大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Windows应用程序,它将在Windows XP及更高版本(即Vista / 7)中运行。根据 Vista UI准则,标准尺寸为16x16, 32x32,48x48,256x256(XP标准尺寸不包括256x256图标)。除了这些尺寸,我还有96x96和128x128(可以创造更多)。

I have a Windows application which will run in Windows XP and newer (i.e. Vista/7). According to the Vista UI Guidelines, the standard sizes are 16x16, 32x32, 48x48, 256x256 (XP standard sizes do not include the 256x256 icon). In addition to those sizes, I also have 96x96 and 128x128 (and could create more).

我应该包括以下哪些图标尺寸? shell实际上会使用非标准大小,还是只是膨胀我的应用程序?

Which of these icon sizes should I include? Will the shell actually use the "non-standard" sizes, or will I simply bloat my application?

推荐答案

我花了一些时间仔细检查一下。我创建了一个图标,其图像大小为16,24,32,40,48,64,96,128和256.然后我检查了哪个图像显示。所有这些都是用正常的96dpi完成的。如果使用较大的DPI,可以使用较大的大小(仅在Windows 7中检查一下)。结果:

I took some time to check it in detail. I created an icon whose images have sizes of 16, 24, 32, 40, 48, 64, 96, 128 and 256. Then I checked which image is shown. All these were done with normal 96dpi. If using a larger DPI, the larger sizes may be used (only checked this a bit in Windows 7). The results:

Windows XP:


  • 资源管理器浏览次数:


    • 详情/清单:16

    • 图标:32

    • 瓷砖/缩略图:48

    Windows 7:


    • 资源管理器浏览次数:


      • 详情/清单/小符号:16

      • 所有其他选项:256(如有必要,调整大小)


      • 右键单击-menu:16


      • 小符号: 32

      • 中等符号:48

      • 大符号:256(必要时调整大小)

      • 使用缩放Ctrl +鼠标滚轮:16,32,48,256

      • Small symbols: 32
      • Medium symbols: 48
      • Large symbols: 256 (resized, if necessary)
      • Zooming using Ctrl+Mouse wheel: 16, 32, 48, 256

      Windows运行时:(从这里开始

      Windows Runtime: (from here)


      • Main瓷砖:150x150,310x150(宽版)

      • 小徽标:30x30

      • 徽章(锁屏):24x24,单色

      • 启动画面:620x300

      • 商店:50x50

      • Main tile: 150x150, 310x150 (wide version)
      • Small logo: 30x30
      • Badge (for lockscreen): 24x24, monochromatic
      • Splashscreen: 620x300
      • Store: 50x50

      结果:Windows XP使用16,32,48大小的图标,而Windows 7(也可能是Vista)也使用256大小的图标。 忽略所有其他中间图标大小(他们可能在我未检查的某个区域中使用)。

      So the result: Windows XP uses 16, 32, 48-size icons, while Windows 7 (and presumably also Vista) also uses 256-size icons. All other intermediate icon sizes are ignored (they may be used in some area which I didn't check).

      我还检查了Windows 7如果缺少图标大小会发生什么:

      I also checked in Windows 7 what happens if icon sizes are missing:

      生成缺失的大小(显然) 。尺寸为16,32和48,如果缺少尺寸,则首选缩尺。因此,如果我们有大小为16和48的图标,则会从48图标创建32图标。 如果没有其他尺寸可用,256图标仅用于这些!因此,如果图标尺寸为16和256,则其他尺寸将从16图标放大!

      The missing sizes are generated (obviously). With sizes of 16, 32, and 48, if one is missing, downscaling is preferred. So if we have icons with size 16 and 48, the 32 icon is created from the 48 icon. The 256 icon is only used for these if no other sizes are available! So if the icons are size 16 and 256, the other sizes are upscaled from the 16 icon!

      此外,如果256图标不存在,则使用(可能生成的)48图标,但不再调整大小。所以我们有一个(可能很大)空白区域,中间有48个图标。

      Additionally, if the 256 icon is not there, the (possibly generated) 48 icon is used, but not resized anymore. So we have a (possibly large) empty area with the 48 icon in the middle.

      请注意,XP中的默认桌面图标大小为32x32,而在Windows 7中则为是48x48。
      因此,对于Windows 7来说,拥有一个48图标是相对重要的。否则,它会从一个较小的图标放大,这可能看起来很丑陋。

      Note that the default desktop icon size in XP was 32x32, while in Windows 7 it is 48x48. As a consequence, for Windows 7 it is relatively important to have a 48 icon. Otherwise, it is upscaled from a smaller icon, which may look quite ugly.

      关于Windows XP兼容性的说明:如果您将图标重复用作窗口图标,请注意如果使用压缩文件,这可能会导致应用程序崩溃256个图标。解决方案是不压缩图标或创建没有(压缩)256图标的第二个版本。有关详细信息,请参见此处

      Just a note about Windows XP compatibility: If you reuse the icon as window icon, then note that this can crash your application if you use a compressed 256 icon. The solution is to either not compress the icon or create a second version without the (compressed) 256 icon. See here for more info.

      这篇关于我的Windows应用程序的图标应包含哪些图标大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆