Hello, im trying to make images to avi maker, now i watched this thread: http://www.vbforums.com/showthread.php?t=395812 And i downloaded that avilib and imported, so now im trying to use this code:
Code:
Dim fr As UInt32 'set up a uint32 for frame rate
        fr = Convert.ToUInt32(60) 'set frame rate (from a constant in this case)
        Dim AW As AviWriter = New AviWriter
        Dim BM As Bitmap
        BM = AW.Open("replay.avi", fr, pbField.Width, pbField.Height)
        Dim canvas As Graphics = Graphics.FromImage(BM)
        '// THEN WRITE TO THE AVI FILE
        For i = 0 To 4 'loop through writing each frame one at a time 
            BM = Image.FromFile("C:\Stopmo\1.bmp")
            BM = Image.FromFile("C:\Stopmo\2.bmp")
            canvas.Clear(Color.White) 'clear the canvas
            ' THEN DRAW SHAPES ON TO THE CANVAS (using standard GDI+ code e.g. canvas.FillRectangle(...) etc.) 
            ' I think you could also use BM = BM.FromFile(filename) to load bitmaps one at a time from the hard drive
            AW.AddFrame() 'add the bitmap (BM) to the AVI file
        Next
        AW.Close()
On form load. So now when i run my program, then it just makes replay.avi file and there is just white background for 1 second, and why it doesn't adds my image: BM = Image.FromFile("C:\Stopmo\1.bmp") ?