Jul 18, 2014 03:45 PM
(This post was last modified: Jul 18, 2014 03:50 PM by Nov.)
I am using the AForge framework to grab a snapshot of a video frame captured through a webcam.
I have written this method but it's not working:
Anyone have any experience with AForge?
I have written this method but it's not working:
Code
public void GrabFrames(object sender, ref Bitmap bm)
{
if (button1WasClicked)
{
Bitmap capturedImage = (Bitmap)bm.Clone();
string strGrabFileName = String.Format("C:\\Users\\Nov\\Documents\\CapturedVideo\\Snapshot_{0:yyyyMMdd_hhmmss.fff}.bmp", DateTime.Now);
capturedImage.Save(strGrabFileName, System.Drawing.Imaging.ImageFormat.Bmp);
}
}Anyone have any experience with AForge?


