Converting Byte Array To Bitmap
Posted on 2005-03-15
I have a byte array (points only) that I need to convert to a bitmap.
When I try :
dim bImage((320*240)-1) as Byte
Dim img As New Bitmap(New System.IO.MemoryStream(bImage))
it errors when the bitmap is created.
I can do it by looping through all the x,y's, but it is too slow. I need a faster method.
I am developing in VB.NET 2003.
I would like to see an example in VB.NET on how this is performed.