Hi, with this code I get the error: "A generic error ocurred in GDI+ continue?"
when I try to save a image that is used in the form control. If I try to continue, not always appears the same error (sometimes yes, sometimes no...)
I think this problem has something to do whith the image locked, is there any solution?
The code:
Sub Globals
Dim Devices(0)
End Sub
Sub App_Start
Form1.Show
AddButton("form1","bSaveimage",2,230,90,20,"Save Image")
AddButton("form1","Button3",100,230,90,20,"To Form")
AddImage("form1","image1",5,5,100,100)
WebCam.New1
Devices() = WebCam.GetAllDevices
WebCam.NewCaptureWindow(0, "image1",1,1,image1.Width,image1.Height)
Webcam.PreviewOn(10)
End Sub
Sub bSaveImage_Click
WebCam.SaveImage(AppPath & "\capture.jpg","J")
End Sub
Sub Button3_Click
bitmap1.New1 (AppPath & "\capture.jpg")
Form1.Image = bitmap1.Value
End Sub
Sub Form1_MouseDown (x,y)
form1.circle(x,y,5,cRed,f)
End Sub