how to save bitmap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • diwakar09
    New Member
    • Sep 2007
    • 39

    how to save bitmap

    hi
    after doing CreateCompatibl eBitmap() i have handle to bitmap,

    but how to save this thing in harddisk.
    is there any api. that will do this
    i am using vc++
  • Cucumber
    New Member
    • Sep 2007
    • 90

    #2
    Declare, fill and save to a file a BITMAPFILEHEADE R structure.
    Declare, fill and, save to the same file, a BITMAPINFOHEADE R structure.
    Save, to the same file, the bits of your bitmap. I think each row of the bitmap must get saved using a 32-bit boundary; fill with zeroes the end of each row if necessary.

    Filling those structures are among the most bothersome things to do in Win32 programming.

    Comment

    Working...