By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,651 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,651 IT Pros & Developers. It's quick & easy.

binar to Image

P: 2
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
Dec 30 '08 #1
Share this Question
Share on Google+
3 Replies


P: 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
Dec 30 '08 #2

10K+
P: 13,264
Read about the BinaryWriter class.
Dec 30 '08 #3

vekipeki
Expert 100+
P: 229
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).
Dec 31 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.