I have a image in a DC floating around the computer. Its not in a control in other words. Is there a way I could save this image to a file?
Printable View
I have a image in a DC floating around the computer. Its not in a control in other words. Is there a way I could save this image to a file?
Easy way: BitBlt to a picturebox and call SavePicture(PicBox.Image)
I cant use a picturebox. Is there another way?
Create the picturebox in memory? :D
You could try to save the bitmap manually, I think I've done that too once........ oh, nope, I only read a bitmap directly from disk :). You could reverse the process though...
I don't know if it's any help, but here's the link anyways: http://psprogramming.multimania.com/...7/dd_zlib.html
Download the 'Bitmap compression' file and take a look at the cBitmap Class...