|
-
Jan 30th, 2007, 12:32 AM
#1
Thread Starter
New Member
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.
-
Jan 30th, 2007, 04:05 AM
#2
Frenzied Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|