Hi folks. I’m getting around to addressing the fact that my app’s icon, when seen in the Alt-Tab app selector window looks jaggy/distorted, because it is a 16x16 icon that Windows XP is scaling up to be 32x32. I think the answer is to use an .ico file that contains a number of different sizes, something I have not done before.
I have the icon image I want to use, and from what I gather, what I have to do is to acquire a number of sizes of this image (available from where I got the icon) and then use some freeware to combine them into one .ico file. I can then use wxIconBundle and myapp.SetIcons() and after that the appropriate sized icon will be used by the OS for its different needs (alt-tab window, taskbar, app itself, etc.). Note: I will be using img2py so that I don’t have to include image files when I distribute my app.
I have a number of questions regarding this, and although this is not strictly wxPython content, it might be useful to know for wxPython app developers (well, at least this one), so I thought I’d ask:
-
Is the way I am understanding it above right?
-
Is there something already built into wxPython that helps with this?
-
Are there concerns about this approach working on Linux and Mac just as well as on Windows XP and up, or are there OS-specific (or even OS version specific) concerns I need to know about?
-
What are the sizes that I really should include these days so that all modern OSs have what they need to look great?
-
Do I have to be concerned about creating both 4-bit and 8-bit versions of each size?
-
Is using img2py going to present any problems with the use of a multi size .ico file?
Thanks,
Che