简体   繁体   English

windows 中应用程序图标的最佳实践

[英]Best practice for application-icon in windows

So far I had "designed" my app-icon in the Visual-Studio-Editor.到目前为止,我已经在 Visual-Studio-Editor 中“设计”了我的应用程序图标。 16-Colors, 4kB. 16 色,4kB。 Now someone created a more sophisticated and up-to-date app-icon for me, which results in a filesize of about 250kB.现在有人为我创建了一个更复杂和最新的应用程序图标,这导致文件大小约为 250kB。

Problem: A user reported, that win2000 is complaining, because it is not able to digest this amount of data for an icon.问题:一位用户报告说,win2000 正在抱怨,因为它无法消化图标的这些数据量。

Question: What can be regarded as best practice for application-icons .问题:什么可以被视为应用程序图标的最佳实践 In detail: which resolutions and which color-depth-variations should be contained in an icon?详细说明:图标中应包含哪些分辨率和哪些颜色深度变化?

I've always tried to stick to the following set of sizes to get a reasonable icon on most systems.我一直试图坚持以下一组尺寸,以便在大多数系统上获得合理的图标。

  • 16 x 16 in 16 colours 16 x 16 16 种颜色
  • 16 x 16 in XP Style (true colour with alpha channel info) 16 x 16 in XP Style(带有 alpha 通道信息的真彩色)
  • 32 x 32 in 256 colours 32 x 32 256 色
  • 32 x 32 in XP style XP 风格的 32 x 32
  • 48 x 48 in XP style XP 风格的 48 x 48
  • 64 x 64 in XP style XP 风格的 64 x 64

This produces an icon of about 35KB in size and seems to work on systems from win95/98 all the way up to Vista.这会产生一个大约 35KB 大小的图标,似乎可以在从 win95/98 一直到 Vista 的系统上工作。 I still develop on a Win2000 machine and these work just fine.我仍然在 Win2000 机器上开发,这些工作正常。

icoFX is a free icon editor which I just found. icoFX 是我刚刚发现的免费图标编辑器。 It seems to work nicely - you just check the boxes for the formats you want "slaved" to your big 256x256 icon which is the one you edit.它似乎工作得很好——你只需选中你想要“从属”到你编辑的 256x256 大图标的格式框。 Searching stack overflow for icoFX - others agree.搜索 icoFX 的堆栈溢出 - 其他人同意。

In general I wouldn't care about Windows 2000 any more as even Microsoft has begun to stop support for it.总的来说,我不会再关心 Windows 2000 因为甚至微软已经开始停止支持它了。 For Windows XP this article on MSDN might help you.对于 Windows XP ,MSDN 上的这篇文章可能会对您有所帮助。

I'd say best practise would be to follow the icon example Microsoft is setting with XP and Vista icons.我想说最好的做法是遵循 Microsoft 使用 XP 和 Vista 图标设置的图标示例。 It's so rare to see anything less than 256 colour icons these days, that when I do see them I think the program is quaint and outdated.现在很少能看到少于 256 种颜色的图标,所以当我看到它们时,我认为该程序古怪且过时。 Perhaps best bet is to wait for Microsoft to add SVG icon support;也许最好的办法是等待微软添加 SVG 图标支持; perhaps in Windows 7, if we're lucky?也许在Windows 7、如果我们幸运的话?

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

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