I don't know if GDI+ supports saving a bitmap to 16-bit grayscale indexed png, but if it does I can't seem to be able to do it. Is this possible? If not, is there an open-source library that can be used?
Asked
Active
Viewed 1,522 times
3
-
Grayscale isn't indexed. Indexed means the pixels refer to indices on a colour palette. Grayscale images just have values that give a brightness directly, without any palette involved. That said, GDI+ doesn't contain any support for 16-bit grayscale, no. It is listed in the `PixelFormat` enum (as `Format16bppGrayScale`), but it is not actually supported. – Nyerguds Dec 13 '19 at 19:22