How to create an image from a 2-dimensional byte array?
- by Manoj
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!!