Jump to content
Xtreme .Net Talk

khumbu

Members
  • Posts

    2
  • Joined

  • Last visited

khumbu's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. thx for the reply but i knew that.... when i find it i will post the answer for sure
  2. I hope this isn't the wrong room.. Here i go: I figured out how to use streams but i still have a small problem Here is the code i use (it's behind a button) It loads a bitmap puts it into a stream so i can change it. Dim i As Integer Dim mfs As FileStream Dim myarray(265650) As Byte Dim mms As New MemoryStream() mfs = New FileStream("WW" & 1 & ".bmp", FileMode.Open) mfs.Read(myarray, 1, 265650) mfs.Close() 'here i write 0 to certain the elements in the array For i = 13879 To 50000 Step 1 myarray(i) = 0 Next 'when i put the array in the mms it sets all the bytes starting from 13879 at 0 (until the end) WHY? It should only do it from 13879 To 50000 mms.Write(myarray, 1, 265650) pBox.Image = System.Drawing.Bitmap.FromStream(mms) Am i missing somthing? Ty for your help
×
×
  • Create New...