How to create an image from a 2-dimensional byte array?
Posted
by Manoj
on Stack Overflow
See other posts from Stack Overflow
or by Manoj
Published on 2009-03-12T13:52:09Z
Indexed on
2010/05/06
5:18 UTC
Read the original article
Hit count: 181
c#
Hi all,
In my project after long process, i got a 2 dimensional byte array from the IR camera.
The byte array holds image in it...
How to convert that byte array to image in C#..
I know that by
MemoryStream ms = new MemoryStream(byteArray);
System.drawing.Image im = Image.FromStream(ms);
We can pass 1 dimensional array and convert it into image..
If i pass 2 dimensional array as a single dimensional array.. it shows error..
How to rectify it..???? or else how to convert 2 dimensional byte array to image...???
Thank you!!
© Stack Overflow or respective owner