pretty much what i said. here is some of the code that i have:
when the timer hits a 2 second interval the picturebox on form 3 gets a new image from the screen shot that form 4 takes off of form4's area. i want the user to select a folder with the "folder browser dialog" and i want each frame capture to be saved to the folder (every 2 seconds) that the user chooses as "1.jpg, 2.jpg, 3.jpg" etc could you please give me a good idea and some code on how to do this thank you. p.s if you need a better idea or more code examples on what I'm trying to say, just ask. thanks againCode:Public Function CaptureImage(ByVal X As Integer, ByVal Y As Integer, ByVal Width As Integer, ByVal Height As Integer) As Bitmap Dim JPEG As New Bitmap(Width, Height) Dim G As Graphics = Graphics.FromImage(JPEG) G.CopyFromScreen(New Point(X, Y), New Point(0, 0), JPEG.Size) G.Dispose() : Return JPEG End Function '-------------- Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick '-------------- ' "screenshot" is the picturebox on form 3 Form3.screenshot.Image = CaptureImage(Form4.Location.X, Form4.Location.Y, Form4.ClientSize.Width, Form4.ClientSize.Height) End Sub




Reply With Quote
