private void CameraPictureBox_MouseDown(object sender, MouseEventArgs e) { if (!m_SelectTestArea || CameraPictureBox.Image == null) { return; } CameraPictureBox.Load(m_DefaultImage); if (m_BitmapBak == null) { m_BitmapBak = new Bitmap(CameraPictureBox.Image, CameraPictureBox.Width * 2, CameraPictureBox.Height * 2); } m_StartPoint.X = e.X; m_StartPoint.Y = e.Y; textBox_TestStartX.Text = e.X.ToString(); textBox_TestStartY.Text = e.Y.ToString(); m_bDrawing = true; }
private void button_LoadPicture_Click(object sender, EventArgs e) { CameraPictureBox.Load(m_DefaultImage); }