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); }
public void RepaintVideo() { if (m_pDisplay != null) { m_pDisplay.RepaintVideo(); } }
void VideoInternalWindow_Paint(object sender, PaintEventArgs e) { if (_evr != null && _isInit) { try { _evr.RepaintVideo(); } catch { // evr is not connected } } }
/// <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); }
private void WndVideo_Paint(object sender, PaintEventArgs e) { videocontrol.RepaintVideo(); }