RE: Win API question
- Posted by "Bernard W. Ryan" <xotron at bluefrognet.net> Dec 10, 2003
- 504 views
Philip: The size of the icon depends on where it will be displayed on the large icon, small icon, minimized icon, alt-tab icon, etc. The icon must contain all the needed SIZES if you don't want it to be compressed. A window's icon resource ( or .ico file ) contains a 16x16, 32x32 and 48x48. This icon can also contain these 3 icons in in different color pallete sizes ( a total 9 possible combinations ). When windows displays an icon it selects the appropriate available icon to display OR it tries to select and adjust the icon size to fit the needed size and uses the nearest color pallet that is available for that icon. A good icon editor will allow you to see what sizes an ICO file file contains. Bernie