How to extract the proper sized icon from .ico file
Posted on 2011-05-12
I am getting .ico files from our UX dept. Each has the same image drawn to three different scales; 16x16, 24x24 and 32x32. My screens need to be able to extract the icon of the correct size to use dynamically, as the sizes needed can change quickly.
Image image = GetImageFile("imagename");
Image image16 = ???
Assuming that image is an .ICO file with three image sizes, and given that I know I want the 16x16 size, how would I extract the proper Image?