Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to draw a line over the video frames?

draw frames line video
0
Posted

How to draw a line over the video frames?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123