How to save memory dc into a bitmap file?
I use API LoadImage open a bitmap file:
hBmp = LoadImage(0, "c:\1.bmp", IMAGE_BITMAP,100 ,100, LR_LOADFROMFILE)
hDC = CreateCompatibleDC(hDestDC)
SelectObject hDC, hBmp
......
......
How to save hDC into a bitmap file? (of course i can BitBlt hDC into a picturebox, and use SavePicture to save bitmap file, but i dont want to use this method). Thanks.
Re: How to save memory dc into a bitmap file?
Do a search for posts of me in the games and graphics section.
One of them has a class (clsHdc) attached.
This class can save the contents of a hdc as a bitmap.