I am attempting to access graphic data within memory.
1) I load in graphic data into a bitmap variable.
PO = New Bitmap("C:\Grass.Bmp")
2) In appropriate part of I code I put the data into a memorystream.
Dim MStrm As MemoryStream = New MemoryStream()
PO.Save(MStrm, System.Drawing.Imaging.ImageFormat.Bmp)
3) I now want to read that data.
----- Have already declared -----
Private DVW As Device = Nothing
Private TXW As Texture = Nothing
-------------------------
L1 = Mstrm.length
TXW = TextureLoader.FromStream(DVW, Mstrm, L1)
No errors show, but it does error upon execution. Can anyone point out what I am missing?
1) I load in graphic data into a bitmap variable.
PO = New Bitmap("C:\Grass.Bmp")
2) In appropriate part of I code I put the data into a memorystream.
Dim MStrm As MemoryStream = New MemoryStream()
PO.Save(MStrm, System.Drawing.Imaging.ImageFormat.Bmp)
3) I now want to read that data.
----- Have already declared -----
Private DVW As Device = Nothing
Private TXW As Texture = Nothing
-------------------------
L1 = Mstrm.length
TXW = TextureLoader.FromStream(DVW, Mstrm, L1)
No errors show, but it does error upon execution. Can anyone point out what I am missing?