public void SetupMonitorRegion()
        {
            var img = LastImage;

            if (img != null)
            {
                using (var form = new FormRoi())
                {
                    form.Image = img;
                    form.Roi   = GetRoi();
                    if (form.ShowDialog(Application.OpenForms[0]) == DialogResult.OK)
                    {
                        _portraitFinder.ROI = form.Roi;
                        SaveRoi(form.Roi);
                    }
                }
            }
        }
Exemplo n.º 2
0
 public void SetupMonitorRegion()
 {
     var img = LastImage;
     if (img != null)
     {
         using (var form = new FormRoi())
         {
             form.Image = img;
             form.Roi = GetRoi();
             if (form.ShowDialog(Application.OpenForms[0]) == DialogResult.OK)
             {
                 _portraitFinder.ROI = form.Roi;
                 SaveRoi(form.Roi);
             }
         }
     }
 }