/// <summary>
 /// 初始化视频画刷及显示控件
 /// </summary>
 public void IniVideoRender(BITMAPINFOHEADER BITMAPINFOHEADER)
 {
     drawDib = new DrawDib(this.controlVideo);
     drawDib.BITMAPINFOHEADER = BITMAPINFOHEADER;
     drawDib.BITMAPINFOHEADER.biCompression = (int)BI.BI_RGB;
     drawDib.BITMAPINFOHEADER.biBitCount = 24;
     drawDib.Open();
 }
Exemple #2
0
 /// <summary>
 /// 关闭视频捕捉
 /// </summary>
 public void Close()
 {
     if (this.vCapturer != null)
     {
         this.vCapturer.Stop();
         this.vCapturer.Close();
         this.vCapturer.Disconnect();
         this.vCapturer    = null;
         this.drawDib      = null;
         this.panel        = null;
         this.controlVideo = null;
     }
 }
Exemple #3
0
        //private delegate void delegateDrawControl(byte[] data);
        //private void drawControl(byte[] data)
        //{
        //    this.drawDib.Draw(data, this.controlVideo);
        //    if (this.VideoDataCapturered != null)
        //        this.VideoDataCapturered(this, new VideoCapturedEventArgs(this.bitmapInfo, data));
        //}
        #endregion

        #region 初始化视频画刷及显示控件
        /// <summary>
        /// 初始化视频画刷及显示控件
        /// </summary>
        private void IniVideoRender()
        {
            drawDib = new DrawDib(this.controlVideo);
            drawDib.BITMAPINFOHEADER = bitmapInfo.bmiHeader;
            drawDib.Open();
        }
 /// <summary>
 /// 初始化视频画刷及显示控件
 /// </summary>
 private void IniVideoRender()
 {
     drawDib = new DrawDib(this.controlVideo);
     drawDib.BITMAPINFOHEADER = bitmapInfo.bmiHeader;
     drawDib.Open();
 }
 /// <summary>
 /// 关闭视频捕捉
 /// </summary>
 public void Close()
 {
     if (this.vCapturer != null)
     {
         this.vCapturer.Stop();
         this.vCapturer.Close();
         this.vCapturer.Disconnect();
         this.vCapturer = null;
         this.drawDib = null;
         this.panel = null;
         this.controlVideo = null;
     }
 }