GetHicon of 16 COLOR bitmap returns an image with fewer colors

I have:

Icon icon = Icon.FromHandle(bitmap.GetHicon()); 

using a bitmap that has only 16 colors (not 16-bit depth), but the created icon has fewer colors than the bitmap.

How to solve this?

0
source share

All Articles