|
When loading Icons from exe files ahk only seems to do the right thing for icons sized 32x32.
For Example
Firefox.exe has 3 icons embedded within it.
Icon1 contains 9 formats
1. 48x48 32 bit alpha transparency
2. 32x32 32 bit alpha transparency
3. 16x16 32 bit alpha transparency
4. 48x48 256 color default transparency
5. 32x32 256 color default transparency
6. 16x16 256 color default transparency
7. 48x48 16 color default transparency
8. 32x32 16 color default transparency
9. 16x16 16 color default transparency
Icon2 contains 6 formats - I won't list them as they are not relevant
Icon3 contains 9 formats - an exact duplicate of Icon1 (not sure why they included this)
Following is the outcome for different gui loading options
Gui, Add, Pic, w32 h32, firefox.exe
Produces a 32x32 alpha transparency icon: OK
Gui, Add, Pic, w32 h32 Icon1, firefox.exe
Produces a 32x32 alpha transparency icon: OK
Gui, Add, Pic,, firefox.exe
Produces a 32x32 alpha transparency icon: OK
Gui, Add, Pic,Icon1, firefox.exe
Produces a 32x32 alpha transparency icon: OK
Gui, Add, Pic, w48 h48, firefox.exe
Stretches the 32x32 icon to 48x48 and uses alpha transparency: Should use 48x48 embedded Icon
Gui, Add, Pic, w48 h48 Icon1, firefox.exe
Stretches the 32x32 icon to 48x48 and uses alpha transparency: Should use 48x48 embedded Icon
Similar problems occur with other sizes even though a matching icon size exists. Actually It's difficult to tell what ahk does with a 16x16 icon.
Compare this to extracting an Icon from the exe and saving it as an ico file. In this case, all icons are
rendered correctly and no stretching is performed.
I can provide some screenshots if that would help.
This problem doesn't seem to me to be related to the note in the Help about using a different icon loading method if an Icon Number is specified - but maybe I've misunderstood.
|
|