Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use of FromString

Status
Not open for further replies.

TerishD

IS-IT--Management
Mar 12, 2003
6
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top