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? 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
-
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
codeproject MFC / C++ >> Bitmaps & Palettes CxImage CDibData A DIBSection wrapper for Win32 and WinCE etc... INTP