コード例 #1
0
        private void btnDefineRegion_Click(object sender, EventArgs e)
        {
            BoundaryChooser choose = new BoundaryChooser();

            choose.VideoFrame       = background;
            choose.MotionRectangles = resultRegion;
            if (choose.ShowDialog() == DialogResult.OK)
            {
                resultRegion = choose.MotionRectangles;
                if (resultRegion.Count() == 0)
                {
                    resultRegion = null;
                }
            }
        }
コード例 #2
0
 private void btnDefineRegion_Click(object sender, EventArgs e)
 {
     BoundaryChooser choose = new BoundaryChooser();
     choose.VideoFrame = background;
     choose.MotionRectangles = resultRegion;
     if (choose.ShowDialog() == DialogResult.OK)
     {
         resultRegion = choose.MotionRectangles;
         if (resultRegion.Count() == 0)
             resultRegion = null;
     }
 }