I have an HBITMAP and i would like to convert it to png format(in memory i have malloc'd)as fast as possible, so my question is should i go with GDI+ or libpng? I've tried using GDI+, but it doesn't seem as fast as i would like it to be. I've also tried FreeImage and it was way too slow.
P.S. - I'm using C++
Thanks for reading