Esempio n. 1
0
        public void Dispose()
        {
            CloseDevice();

            m_draw.DestroyDevice();
            m_draw = null;

            GC.SuppressFinalize(this);
        }
Esempio n. 2
0
        // Constructor
        public CPreview(IntPtr hVideo, IntPtr hEvent)
        {
            m_pReader = null;
            m_hwndEvent = hEvent;
            m_pwszSymbolicLink = null;
            m_draw = new DrawDevice();

            int hr = MFExtern.MFStartup(0x20070, MFStartup.Lite);
            MFError.ThrowExceptionForHR(hr);

            hr = m_draw.CreateDevice(hVideo);
            MFError.ThrowExceptionForHR(hr);
        }
Esempio n. 3
0
        // Constructor
        public CPreview(IntPtr hVideo, IntPtr hEvent)
        {
            m_pReader          = null;
            m_hwndEvent        = hEvent;
            m_pwszSymbolicLink = null;
            m_draw             = new DrawDevice();

            HResult hr = MFExtern.MFStartup(0x20070, MFStartup.Lite);

            MFError.ThrowExceptionForHR(hr);

            hr = m_draw.CreateDevice(hVideo);
            MFError.ThrowExceptionForHR(hr);
        }
Esempio n. 4
0
        public void Dispose()
        {
            CloseDevice();

            m_draw.DestroyDevice();
            m_draw = null;

            GC.SuppressFinalize(this);
        }