I'm looking to save an HBITMAP to a PNG image. Is this possible using only the GDI API? (I'm using C, so no GDI+.) I have only found examples like this, to save to a BMP file. Or should I use libpng and use GetDIBits?
Related question (about reading).
Unfortunately, GDI does not support PNGs.