コード例 #1
0
        private void chupanh_Load(object sender, EventArgs e)
        {
            mywebcam = new webcam();
            mywebcam.InitializeWebCam(ref pictureBox1);

            ComboboxItem item = new ComboboxItem();

            item.Text  = "320x240";
            item.Value = 320;
            cbndophangiai.Items.Add(item);

            ComboboxItem item1 = new ComboboxItem();

            item1.Text  = "640x480";
            item1.Value = 640;
            cbndophangiai.Items.Add(item1);

            ComboboxItem item2 = new ComboboxItem();

            item2.Text  = "1280x720";
            item2.Value = 1280;
            cbndophangiai.Items.Add(item2);

            cbndophangiai.SelectedIndex = 2;

            mywebcam.Bat(620, 480);

            groupPanel1.Hide();
        }
コード例 #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     mywebcam = new webcam();
     mywebcam.InitializeWebCam(ref pictureBox1);
 }