예제 #1
0
 private void pbImg_MouseUp(object sender, MouseEventArgs e)
 {
     if (dt != null)
     {
         dt.EndDraw();
     }
 }
예제 #2
0
        private void picCapture_MouseUp(object sender, MouseEventArgs e)
        {
            if (dt != null)
            {
                dt.EndDraw();

                switch (sType)
                {
                case "Eraser": break;

                case "Rect": rect = new int[2] {
                        (int)Math.Abs(e.X - dt.startPointF.X), (int)Math.Abs(e.Y - dt.startPointF.Y)
                }; break;

                case "Line": line = new int[2, 2] {
                        { (int)dt.startPointF.X, (int)dt.startPointF.Y }, { (int)e.X, (int)e.Y }
                }; break;

                default: break;
                }
            }
        }