Results 1 to 2 of 2

Thread: How to save memory dc into a bitmap file?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2007
    Posts
    7

    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.

  2. #2
    Frenzied Member
    Join Date
    Oct 2003
    Posts
    1,301

    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
  •  



Click Here to Expand Forum to Full Width