hi,
does anyone know how to get a screen shot as a png file (under MFC, C++)
i am able to get screen shot as a HBITMAP. I have converted it to device independent bits (DIB) but i dont know how to convert these bits to png in memory.
I am aware i can use CImage to save the hbitmap as a png: CImage image;
image.Attach(hBitmap);
image.Save("c:\\pngPicture.png");
but i really dont wanna do this as the png file will be sent over the network (thus saving it on disk will not be such good idea).