private void pbIgnoreMotion_MouseUp(object sender, MouseEventArgs e)
{
/*
if (pbIgnoreMotion.Image == null)
{
pbIgnoreMotion.Image = pbCurrent.Image;
return;
}
Bitmap ebmp = new Bitmap(pbIgnoreMotion.Image);
float perX = (float)startdrag.X / (float)pbIgnoreMotion.Width;
float perY = (float)startdrag.Y / (float)pbIgnoreMotion.Height;
float perX_end = (float)e.X / (float)pbIgnoreMotion.Width;
float perY_end = (float)e.Y / (float)pbIgnoreMotion.Height;
int x = (int)((float)cam.Width * perX);
int y = (int)((float)cam.Height * perY);
int ex = (int)((float)cam.Width * perX_end);
int ey = (int)((float)cam.Width * perY_end);
helper.DrawBox(x, y, ex - x, ey - y, ref ebmp, Color.White, true);
pbIgnoreMotion.Image = ebmp;
detector.IgnoreMotion = ebmp;*/
}