Let's start off by establishing I'm terrible at graphics in VB. I have zero experience with manipulating images; nothing.
My program includes a file browser with thumbnail view. If it's not an image file, it defaults to the icon associated with that file type. But some file types don't have high-resolution icons associated with them, so Explorer displays the 32x32 icon in a frame. That's what I want to do (only for all non-image file types, because getting those higher-res icons is a monumental task I haven't yet implemented). Here's a picture to clarify:
![]()
How do I take the 32x32 default icon, which I have a handle to from ImageList_GetIcon, and add a border like that for the difference between 32x32 and an arbitrary (but limited to 512x512 in my program) size? I don't even know where to begin. Right now the ImageList just gives me a scaled version, which looks terrible:
![]()
To clarify, my program is not drawing the thumbnails itself. It adds either an hIcon from a GetAssociatedIcon function, or an hBitmap from IExtractImage. So I would need to modify from that before putting it in the final image list.
My program includes a file browser with thumbnail view. If it's not an image file, it defaults to the icon associated with that file type. But some file types don't have high-resolution icons associated with them, so Explorer displays the 32x32 icon in a frame. That's what I want to do (only for all non-image file types, because getting those higher-res icons is a monumental task I haven't yet implemented). Here's a picture to clarify:

How do I take the 32x32 default icon, which I have a handle to from ImageList_GetIcon, and add a border like that for the difference between 32x32 and an arbitrary (but limited to 512x512 in my program) size? I don't even know where to begin. Right now the ImageList just gives me a scaled version, which looks terrible:

To clarify, my program is not drawing the thumbnails itself. It adds either an hIcon from a GetAssociatedIcon function, or an hBitmap from IExtractImage. So I would need to modify from that before putting it in the final image list.