[Mono-dev] Byte Array to Bitmap
stifu at free.fr
Tue Aug 30 09:13:48 EDT 2011
Your questions are Mono / .NET questions, not MonoDevelop (IDE) related.
Maybe you could do something like this:
System.IO.MemoryStream ms = new System.IO.MemoryStream(data); // "data"
being your byte array
System.Drawing.Bitmap image = new System.Drawing.Bitmap(ms); // Don't forget
to Dispose your objects...
(Prefixing types with the full namespace to make it easier for you.)
> Please forgive me if this is posted in a different manner. i couldn't find
> anything on search but i'm new to monodevelop and not sure of some
> i'm wanting to convert a byte array that is a 24bit bitmap to a bitmap or
> image that i can show in an image control or similar. i'm not sure how to
> do this monodevelop.
> any pointers would be greatly appreciated.
View this message in context: http://mono.1490590.n4.nabble.com/Byte-Array-to-Bitmap-tp3778509p3778678.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list