This may be a toughy, but here goes.

Does anyone know how to read an .ico file and (1) identify the types of images it contains (i.e. "32X32 256 color", "16X16 256 color", "48X48 etc.") and (2) save off to a new file a file with only the image sizes I want (i.e. just 32x32, or just 32x32 and 16x16, etc.).

Now - really pushing it - does anyone know how to create a "gray-scale" image, given a color image (i.e. read in a normal color-icon, apply gray scale to it, and output the gray scale "disabled-looking" image)?

Any help would be appreciated.