AviCap
-
Does anyone know how to capture webcam images using avicap32.dll and not save the images to the clipboard. I would like to be able to actually stream the images 'into' the a picture box or any other control capable of holding an image, and then retrieve an image at any given time by way of the Image property. I do not want to use the clipboard because in my app a user may be using it for other things such as text editing, etc.. I have used DirectShow but avicap32.dll in my case would be better suited. Any help at all would be appreciated. -Jason
-
Does anyone know how to capture webcam images using avicap32.dll and not save the images to the clipboard. I would like to be able to actually stream the images 'into' the a picture box or any other control capable of holding an image, and then retrieve an image at any given time by way of the Image property. I do not want to use the clipboard because in my app a user may be using it for other things such as text editing, etc.. I have used DirectShow but avicap32.dll in my case would be better suited. Any help at all would be appreciated. -Jason
jasonpb wrote:
how to capture webcam images
http://www.codearchive.com/rate.php?rid=1752&go=1012[^]
jasonpb wrote:
save the images to the clipboard. I would like to be able to actually stream the images 'into' the a picture box or any other control capable of holding an image
-
jasonpb wrote:
how to capture webcam images
http://www.codearchive.com/rate.php?rid=1752&go=1012[^]
jasonpb wrote:
save the images to the clipboard. I would like to be able to actually stream the images 'into' the a picture box or any other control capable of holding an image
My whole post was about avoiding the clipboard, when reading the documentation, it says there are alternatives to the clipboard, but i have yet to make any of them work. Since my app should allow for text editing in other areas of the app, I do not want to use the clipboard, for this reason... I was using the clipboard to start, but then when testing, i realized that I was losing some stuff that I had copied and had been replaced with an image. So then I decided as a workaround to right before I save the image to clipboard, I would copy the contents in the clipboard to memory, then send the image to it, retrieve the image back, then reset the contents of the clipboard back to its original contents. Most of the testing I did like this worked ok, but every now and then, the contents would get mixed up and where it should be saving an image it was saving text that was copied into the clipboard and vice versa. The documentation states that you can save it to some sort of an independant bitmap, but I do know how to go about doing that. Any suggestions? -Jason
-
My whole post was about avoiding the clipboard, when reading the documentation, it says there are alternatives to the clipboard, but i have yet to make any of them work. Since my app should allow for text editing in other areas of the app, I do not want to use the clipboard, for this reason... I was using the clipboard to start, but then when testing, i realized that I was losing some stuff that I had copied and had been replaced with an image. So then I decided as a workaround to right before I save the image to clipboard, I would copy the contents in the clipboard to memory, then send the image to it, retrieve the image back, then reset the contents of the clipboard back to its original contents. Most of the testing I did like this worked ok, but every now and then, the contents would get mixed up and where it should be saving an image it was saving text that was copied into the clipboard and vice versa. The documentation states that you can save it to some sort of an independant bitmap, but I do know how to go about doing that. Any suggestions? -Jason
-
Thanks for the link, but I had already found that and it like many others use the clipboard for capturing still shots. For example, that articles code for the function to capture an image uses... '---copy the image to the clipboard--- SendMessage(hWnd, WM_CAP_EDIT_COPY, 0, 0) '---retrieve the image from clipboard and convert it ' to the bitmap format data = Clipboard.GetDataObject() I have found an alternative to that scheme but now I am having problems forcing that window to paint it self or atleast think it is painted when it is hidded, as sometimes i get a black capture image. -Jason