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. What are the steps to save the content of the CDC to the Bitmap file?

What are the steps to save the content of the CDC to the Bitmap file?

Scheduled Pinned Locked Moved C / C++ / MFC
graphicstoolsjsonperformancehelp
2 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.
  • J Offline
    J Offline
    JHAKAS
    wrote on last edited by
    #1

    What are the steps to save the content of the CDC to the Bitmap file? Well going through the MSDn and web articles i found some of the handy tools that are used for saving the content of Memory device context to bitmap file are: 1.0 Fill the BITMAPHEADERINFO structure 2.0 uSE THE GetDIBits() function 3.0 Use of CreateDIBSection to write Problem Statement: I am having a global Memory device context. In a function i am initialising it as Mem. DC by calling API -> CreateCompatibleDC(). All the drawing stuff is drawn to it. Now on Save i have to save the content of the MemoryDevice Context ( MemDC) to a Bitmap file. Any solution,idea and guidelines to do this. Leave your mark wherever you go

    J 1 Reply Last reply
    0
    • J JHAKAS

      What are the steps to save the content of the CDC to the Bitmap file? Well going through the MSDn and web articles i found some of the handy tools that are used for saving the content of Memory device context to bitmap file are: 1.0 Fill the BITMAPHEADERINFO structure 2.0 uSE THE GetDIBits() function 3.0 Use of CreateDIBSection to write Problem Statement: I am having a global Memory device context. In a function i am initialising it as Mem. DC by calling API -> CreateCompatibleDC(). All the drawing stuff is drawn to it. Now on Save i have to save the content of the MemoryDevice Context ( MemDC) to a Bitmap file. Any solution,idea and guidelines to do this. Leave your mark wherever you go

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      codeproject MFC / C++ >> Bitmaps & Palettes CxImage CDibData A DIBSection wrapper for Win32 and WinCE etc... INTP

      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