示例#1
0
        private void btnTakePicture_Click(object sender, EventArgs e)
        {
            Task t = new Task(() => {
                Image img = MugshotMaker.takeMugShot(0, 900);
                if (img != null)
                {
                    pbSnap.Image = img;
                }
            });

            t.Start();
        }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     MugshotMaker.init();
 }