本文介绍了如何在Windows应用程序中进行axvlc捕获的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从axVLCPlugin应用程序中拍一张照片
但我拍的所有照片都是黑色的
请帮帮我
我尝试了什么:
私有 void button1_Click( object sender,EventArgs e)
{
axVLCPlugin21.playlist。 add ( 的rtsp://管理员:[email protected]:554 /凸轮/内RealMonitor通道= 1&安培;亚型= 0跨度>);
pictureBox1.Visible = true ;
axVLCPlugin21.playlist.togglePause();
Rectangle screenSize = new 矩形( 0 , 0 , 500 , 400 );
// Thread.Sleep(1000);
位图目标= new 位图(screenSize.Width,screenSize.Height);
// 位图bmpSnapshot2 =新位图(700,500);
axVLCPlugin21 .DrawToBitmap(target,screenSize);
// 位图bmpSnapshot2 =新位图(axVLCPlugin22.DrawToBitmap());
pictureBox1.Image = target;
axVLCPlugin21.playlist.play();
pictureBox1.Image.Save( @ HinhCN \\kk.jpg) ;
}
解决方案
I want to take a photo from axVLCPlugin application but all the photos I took were all black Please help me
What I have tried:
private void button1_Click(object sender, EventArgs e) { axVLCPlugin21.playlist.add("rtsp://admin:[email protected]:554/cam/realmonitor?channel=1&subtype=0"); pictureBox1.Visible = true; axVLCPlugin21.playlist.togglePause(); Rectangle screenSize = new Rectangle(0,0,500,400); //Thread.Sleep(1000); Bitmap target = new Bitmap(screenSize.Width, screenSize.Height); // Bitmap bmpSnapshot2= new Bitmap (700, 500); axVLCPlugin21.DrawToBitmap(target, screenSize); // Bitmap bmpSnapshot2 = new Bitmap(axVLCPlugin22.DrawToBitmap()); pictureBox1.Image = target; axVLCPlugin21.playlist.play(); pictureBox1.Image.Save(@"HinhCN\\kk.jpg"); }
解决方案
这篇关于如何在Windows应用程序中进行axvlc捕获的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!