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!
On Windows, the system tray icon size is 16x16; on X11, the preferred size is 22x22. The icon will be scaled to the appropriate size as necessary.
The system tray (or "systray") is a section of the taskbars in the Microsoft Windows operating system (OS) user interface that provides easy access icons to the user's most commonly used apps and displays the clock. A system tray is also available in other OSes such as Linux, Mac OS, Android and iOS.
Icons have a maximum size of 256x256 pixels, making them suitable for high-dpi (dots per inch) displays.
Right-click the taskbar and chose Taskbar settings. Locate the Use small taskbar buttons option from the right pane and select the button next to it. The taskbar will immediately become noticeably smaller.
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.
It's 16x16. If you create a .ico file that supports 16, 32, 48 and 256 sizes, you're covered.
For XP it's 16 x 16
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With