binar to Image

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adore
    New Member
    • Dec 2008
    • 2

    #1

    binar to Image

    i have binnary data in a text file now i want to change this binary dat to image form
    I m not getting any solution .Please help me out
  • adore
    New Member
    • Dec 2008
    • 2

    #2
    i have binnary data in a text file now i want to change this binary data to image form
    I m not getting any solution .Please help me out so that my problem get solved

    Any One who can help me

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Read about the BinaryWriter class.

      Comment

      • vekipeki
        Recognized Expert New Member
        • Nov 2007
        • 229

        #4
        If you want to open/save standard image files (bmp, png, wmf), you can use the System.Drawing. Bitmap class.

        If your file has a custom format, then you must read it using BinaryWriter, and then create the bitmap yourself. A simple way would be to use Bitmap.SetPixel () method to draw individual pixels.

        Try doing it that way first, and when you get the right results, you can later optimize it yourself or switch to some existing quicker solution (e.g. using http://blogs.msdn.com/windowsmobile/.../faster-c.aspx).

        Comment

        Working...