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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how do I save a bitmap to hard-disk?

how do I save a bitmap to hard-disk?

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicstutorial
4 Posts 4 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.
  • stefanmihaimogaS Offline
    stefanmihaimogaS Offline
    stefanmihaimoga
    wrote on last edited by
    #1

    Could you please tell me how to save to disk a bitmap stored in a HBITMAP structure? thanks in advance.

    Computer Software Professional

    V C H 3 Replies Last reply
    0
    • stefanmihaimogaS stefanmihaimoga

      Could you please tell me how to save to disk a bitmap stored in a HBITMAP structure? thanks in advance.

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      check out these structures BITMAPINFO DIBSECTION BITMAPFILEHEADER ofstream post when need more clues Kuphryn

      1 Reply Last reply
      0
      • stefanmihaimogaS stefanmihaimoga

        Could you please tell me how to save to disk a bitmap stored in a HBITMAP structure? thanks in advance.

        C Offline
        C Offline
        Chris Losinger
        wrote on last edited by
        #3

        use GetDIBits to create a DIB from the HBITMAP then, fill out and write a BITMAPFILEHEADER then write the DIB that's it

        Why donchoo take a peekchur mayn? OK, cleeeeek

        1 Reply Last reply
        0
        • stefanmihaimogaS stefanmihaimoga

          Could you please tell me how to save to disk a bitmap stored in a HBITMAP structure? thanks in advance.

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          You can use fron CImage and attach this handle to it and use from save in this class

          _**


          **_

          WhiteSky


          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