Colleagues,
As you know, the .ico files contain multiple images with different sizes and color depths. To display a 16x16 icon in my tree view, I found an .ico file which has the appropriate size image among other sizes. I’ve got an ImageList
, with ImageSize
set to 16x16. At design time, I’ve loaded the .ico into the ImageList
. But the ImageList
shows PhysicalDimension
for this icon as 32x32 (PhysicalDimension
is read-only). Looks like ImageList
chose the wrong size.
As a workaround, I can extract the needed 16x16 image and save it as a separate file (may be in a different format). But, is there a way to make ImageList
pick the right size from the .ico file?
Any suggestion, insight or reference is appreciated!
- Nick