Пример #1
0
 private void clbWindows_ItemCheck(object sender, System.Windows.Forms.ItemCheckEventArgs e)
 {
     if (e.NewValue == CheckState.Checked)
     {
         iSS.Handle(((Win32Window)clbWindows.SelectedItem).Window);
         fgm.Run();
     }
     else
     {
         fgm.Stop();
     }
 }
Пример #2
0
        private IBaseFilter AddScreenScraper()
        {
            IBaseFilter screenScraper = MDShow.ScreenScraperClass.CreateInstance();

            iGB.AddFilter(screenScraper, "Screen Scraper");

            iSS = (IScreenScraper)screenScraper;
            iSS.FrameRate(frameRate);
            iSS.Handle(Win32Window.DesktopWindow.Window);

            return(screenScraper);
        }
        private IBaseFilter AddScreenScraper()
        {
            IBaseFilter screenScraper = MDShow.ScreenScraperClass.CreateInstance();
            iGB.AddFilter(screenScraper, "Screen Scraper");

            iSS = (IScreenScraper)screenScraper;
            iSS.FrameRate(frameRate);
            iSS.Handle(Win32Window.DesktopWindow.Window);

            return screenScraper;
        }