What is the size of the icons in the system tray? [duplicate]

青春壹個敷衍的年華 提交于 2020-05-10 03:34:08

问题


I want to change the notification icon of my application but don't know what is the size so as to make it properly displayed. Currently it is automatically resized and break my pixels! Please help!


回答1:


It's 16x16. If you create a .ico file that supports 16, 32, 48 and 256 sizes, you're covered.




回答2:


In fact the size of the icon will vary according to the system DPI.

WPF exposes the recommended pixel width and height of small icons with SystemParameters.SmallIconWidth and SystemParameters.SmallIconHeight. (WinForms exposes the equivalent SystemInformation.SmallIconSize - both just wrap around GetSystemMetrics and SM_CXSMICON/SM_CYSMICON.)

Microsoft recommends including 16x16 and 32x32 pixel icons.




回答3:


For XP it's 16 x 16




回答4:


Outlook has an 16*16 pixels icon.




回答5:


I believe it has always been 16x16, but at some point between 98 and XP (Maybe it was CE vs NT?) they learned to support full color and alpha transparency. If you can, try to include a 256 color palleted version in the ICO for safe mode if not older versions of Windows.




回答6:


In ubuntu (unity) it seems to be 24x24 px.




回答7:


Windows 7 has 16*16 pixels icons in system tray.



来源:https://stackoverflow.com/questions/3531232/what-is-the-size-of-the-icons-in-the-system-tray

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