protected virtual bool Paint()
        {
            if (_MFVideoDisplayControl != null)
            {
                _MFVideoDisplayControl.RepaintVideo();
            }
            else
            {
                GDI.PAINTSTRUCT ps;
                IntPtr          hDC = GDI.BeginPaint(_hwnd, out ps);

                if (_VMRWindowlessControl != null)
                {
                    _VMRWindowlessControl.RepaintVideo(_hwnd, hDC);
                }
                else if (_VMRWindowlessControl9 != null)
                {
                    _VMRWindowlessControl9.RepaintVideo(_hwnd, hDC);
                }

                GDI.EndPaint(_hwnd, ref ps);
            }

            return(true);
        }
Esempio n. 2
0
 public void RepaintVideo()
 {
     if (m_pDisplay != null)
     {
         m_pDisplay.RepaintVideo();
     }
 }
Esempio n. 3
0
 void VideoInternalWindow_Paint(object sender, PaintEventArgs e)
 {
     if (_evr != null && _isInit)
     {
         try
         {
             _evr.RepaintVideo();
         }
         catch
         {
             // evr is not connected
         }
     }
 }
Esempio n. 4
0
        /// <summary>
        /// Update Frame
        /// </summary>
        /// <returns></returns>
        public int Repaint()
        {
            int hr = S_Ok;

            if (m_pVideoDisplay != null)
            {
                try
                {
                    m_pVideoDisplay.RepaintVideo();
                }
                catch (Exception e)
                {
                    hr = Marshal.GetHRForException(e);
                }
            }

            return(hr);
        }
Esempio n. 5
0
 private void WndVideo_Paint(object sender, PaintEventArgs e)
 {
     videocontrol.RepaintVideo();
 }