OK guys!
Thanx allot for your answers, butI could not make it work.
So to test this I created a new form, slapped on a PictureBox and wrote this code:
Dim Buffer As Byte()
Dim VideoBitmap As Bitmap
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim x, y, c As Integer
ReDim Buffer(480000)
c = 1
For y = 1 To 600
For x = 1 To 800
Buffer(c) = CByte(255 / 800 * x)
c = c + 1
Next
Next
End Sub
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
Dim BufferPointer As IntPtr
Dim Stride As Integer
BufferPointer = Nothing 'How do I get a pointer ro an Array?
Stride = 800 * 8 'What is Stride??
VideoBitmap = New Bitmap(800, 600, Stride, Drawing.Imaging.PixelFormat.Format8bppIndexed, BufferPointer)
VideoBitmap.MakeTransparent()
PictureBox1.Refresh()
End Sub
Private Sub PictureBox1_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
e.Graphics.DrawImage(VideoBitmap, 0, 0, PictureBox.Width, PictureBox.Height)
End Sub
Now I've got a few moe questions;
How do I get a pointer to my Array (Buffer)?
What is Stride??
(The memory size of a row in the stream of pixel data???)
(I just took the number of pixels in a row and multiplied with eight since they are byte?? Probably wrong.)
Please take the time to answer my stupid questions