3

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?

codelove
  • 1,396
  • 3
  • 17
  • 35
  • 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

1 Answers1

1

AForge contains a grayscale library... you might check to see if this meets your needs.

tbischel
  • 6,337
  • 11
  • 51
  • 73