Vote count:
0
I'm days trying to solve something that still can not.
I am developing a monitoring system that sends a stream for a panel object.
I need to extract an image Bitmap panel of getting the frame of that stream every 1 second.
I've tried using the following code:
Bitmap bmp = new Bitmap(m_viewerPanel.Width, m_viewerPanel.Height);
Rectangle imageRect = new Rectangle(0, 0, m_viewerPanel.Width, m_viewerPanel.Height);
m_viewerPanel.DrawToBitmap(bmp, imageRect);
bmp.Save(@"C:\Users\Fabio\Desktop\imagens\cam" + DateTime.Now.Ticks + ".jpeg", System.Drawing.Imaging.ImageFormat.Jpeg);
This code can generate the Bitmap, but not the contents of that panel would have to show where the frame of the video.
The code responsible for displaying streaming is a video SDK vigilance, and from what I understand, uses DirectX9.
Please help me solve this. I'm trying days and still did not get. This project is already late because of that and no longer know what to do.
Thank U.
asked 1 min ago
Capture image from streaming video on panel .NET C#
Aucun commentaire:
Enregistrer un commentaire