locked
How to retrieve the .raw file from .bmp file? RRS feed

  • Question

  • User-757609608 posted

    Dear all,

                 How to retrive .raw file from .bmp file.

     

    thanks & regards,

    Murthy 

     

    Tuesday, December 8, 2009 12:02 AM

Answers

  • User401360897 posted

    I want to extract teh raw file only from the Bitmap file.

    I am not understanding what are you saying,

    bmp file contains raw bytes.

    Every file has a fixed format,e.g, bmp [link=http://en.wikipedia.org/wiki/BMP_file_format]Format[/link]  [link=http://atlc.sourceforge.net/bmp.html#_toc381201082]Format[/link],

    For example in bmp file, the first two bytes are BM and  some Bytes for Width and some for height and so on. open your BMP file with NotePAd you will see some encoded data.

    There is also an offset where your data is present in RGB form.

    You can read all these using BinaryReader class and write your personal Data BinaryWriter.




    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 9, 2009 6:59 AM

All replies

  • User78336405 posted

    Hi,

    Do you mean that?

    // Add the metadata of the bitmap image to the text block.
    TextBlock myTextBlock = new TextBlock();
    myTextBlock.Text = "The Description metadata of this image is: " + pngInplace.GetQuery("/Text/Description").ToString();


     

    Wednesday, December 9, 2009 12:32 AM
  • User-757609608 posted

    Dear Song-Tian san,

               I am having the Bitmap size it contains a row file and the Bitmap header. the header contains its properties like height,width size stc....and a row file.

     

     I want to extract teh raw file only from the Bitmap file.

     soppose the size of the bmp file will be 100 KB, If we retrive only  raw file the file size will be 60-80 KB only.

    So How can I achive this?

    Thanks & regards,

    Murthy

     

    Wednesday, December 9, 2009 2:11 AM
  • Wednesday, December 9, 2009 2:45 AM
  • User401360897 posted

    I want to extract teh raw file only from the Bitmap file.

    I am not understanding what are you saying,

    bmp file contains raw bytes.

    Every file has a fixed format,e.g, bmp [link=http://en.wikipedia.org/wiki/BMP_file_format]Format[/link]  [link=http://atlc.sourceforge.net/bmp.html#_toc381201082]Format[/link],

    For example in bmp file, the first two bytes are BM and  some Bytes for Width and some for height and so on. open your BMP file with NotePAd you will see some encoded data.

    There is also an offset where your data is present in RGB form.

    You can read all these using BinaryReader class and write your personal Data BinaryWriter.




    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, December 9, 2009 6:59 AM