I am using Aaron Ballman's Windows Functionality Suite to capture video from my webcam. It works fine but ... webcam.startpreview starts the camera images appearing and webcam.stoppreview does as it says and stops the video.
My question is that, after stoppreview I am left with a still image in the canvas control and I need to know how to save that image to disk - preferably as a jpg file.
The canvas control doesn't actually contain the image in this case; it's only used to specify the dimensions and parent of a system-managed window that gets displayed directly on top of the Canvas.
To grab the current frame you'll need to capture the contents of this system-managed window.
e.g. add this function to the WebCamWFS module:
Use the DrawInto method of the Canvas control to copy the image to aPicture
object, then save the Picture to a file: