I want the image to be transparent, but I do not want all the pixels of a certain color to be transparent.
To be more specific, the image is a thumbnail for the folder retrieved through IShellItemImageFactory.GetImage. This gives me a bitmap, as shown in a miniature representation of Windows Explorer, but the background is solid white.
I can use Bitmap.MakeTransparent on it, and this will work in most cases, but in any case, when the thumbnail image contains white itself (for example, a folder containing images containing white colors).
This is probably the first time in 10 years as a developer who, after I asked my question, I did not find an answer anywhere, and I really had to ask it myself. (I think that means I just tied the score! Yippee, now I'm a level 2 developer ...)
source share