How to draw a line over the video frames?
Create a OnFrameOverlayUsingDC event and use the following sample code: … this.VideoGrabber1.OnFrameOverlayUsingDC += new VidGrab.OnFrameOverlayUsingDCEventHandler(this.VideoGrabber1_OnFrameOverlayUsingDC); …private bool CanDraw = true;… private void VideoGrabber1_OnFrameOverlayUsingDC(object sender, VidGrab.TOnFrameOverlayUsingDCEventArgs e) {if (CanDraw){Graphics MyGraphics = Graphics.FromHdcInternal(new IntPtr(e.dc)); SolidBrush b = new SolidBrush(Color.Red);MyGraphics.FillRectangle(b, 10, 10, 200, 2);MyGraphics.Dispose(); }}… This sample code draws a red line at the 10,10 location, width = 200 and thickness = 2.