VBA vs VB.NET - turn bytes into bitmaps
So, recently working on some things, I have noticed the HUGE difference between VBA and VB.NET, specifically with turning bytes into bitmaps.. (assume GiveMeBytes() returns a byte array that is a bitmap)
VB.NET:
Dim image As Byte() = GiveMeBytes()Dim memStream As MemoryStream = New MemoryStream(image)Dim bitImage As Bitmap = New Bitmap(System.Drawing.Image.FromStream(memStream))
bitImage.Save(”C:\test.bmp”)
VBA:
Dim image() As Byteimage = GiveMeBytes()
Dim bitImage
bitImage [...]
Leave a Comment | 1,511 views
