Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. who can tell me how to save the DC...

who can tell me how to save the DC...

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Grrrr
    wrote on last edited by
    #1

    i mean that i draw something on a DC(CDC). then i need to save this to a .bmp file. that is to say, how to find the BITMAPINFO structure?

    K 1 Reply Last reply
    0
    • G Grrrr

      i mean that i draw something on a DC(CDC). then i need to save this to a .bmp file. that is to say, how to find the BITMAPINFO structure?

      K Offline
      K Offline
      KarstenK
      wrote on last edited by
      #2

      You must compute the bitmapinfo structure in your program. This is a "To Do". Read the MSDN and don´t ferget the 'DWORD' Alignment!!! Try this @ home. (B&B)

      G 1 Reply Last reply
      0
      • K KarstenK

        You must compute the bitmapinfo structure in your program. This is a "To Do". Read the MSDN and don´t ferget the 'DWORD' Alignment!!! Try this @ home. (B&B)

        G Offline
        G Offline
        Grrrr
        wrote on last edited by
        #3

        Thanks. Can you tell me where I can find the details about this in MSDN? And how can i compute the bitmapinfo structure about a DC? Best Regards...

        K 1 Reply Last reply
        0
        • G Grrrr

          Thanks. Can you tell me where I can find the details about this in MSDN? And how can i compute the bitmapinfo structure about a DC? Best Regards...

          K Offline
          K Offline
          KarstenK
          wrote on last edited by
          #4

          If you use the visual studio press F1 else try the online docs from MSFT. If you 'maybe' find the bitmapinfo you will read that this info contain the measures about the bitmap. A nice function is also "GetDIBits". Try this @ home. (B&B)

          G 1 Reply Last reply
          0
          • K KarstenK

            If you use the visual studio press F1 else try the online docs from MSFT. If you 'maybe' find the bitmapinfo you will read that this info contain the measures about the bitmap. A nice function is also "GetDIBits". Try this @ home. (B&B)

            G Offline
            G Offline
            Grrrr
            wrote on last edited by
            #5

            ok.Thanks. I have download a program coding with VC++6.0, It use GetDibits() function as you say. http://www.codeguru.com/bitmap/window\_to\_file.shtml Now,i will study these documents and functions at first... thanks you very much..

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups