how to convert a bmp image to a binary file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ankitabhatia
    New Member
    • Feb 2010
    • 8

    how to convert a bmp image to a binary file?

    i have to convert a black and white bmp image into a binary file..
    i have to use the binary file to perform rle(run length encoding) compression techinque...
    i have to do it in c...
    thnx a lot:)
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    A bitmap is already a binary file. Just read the file in and perform you RLE compression and write it out.

    Comment

    • ankitabhatia
      New Member
      • Feb 2010
      • 8

      #3
      oh ..ok ..ill do that..thnx a lot:)

      Comment

      • YarrOfDoom
        Recognized Expert Top Contributor
        • Aug 2007
        • 1243

        #4
        I don't know anything about the bitmap file format, but aren't there headers and stuff which should remain untouched (and some specifically changed) for the image to still work?

        Comment

        Working...