Пример #1
0
        private void surface_MouseDown(object sender, MouseEventArgs e)
        {
            if (!DataReady)
            {
                return;
            }

            bool outOfSurface;
            var  point2D = Surface2Image(new Point(e.X, e.Y), out outOfSurface);

            var cropLock = MouseOverCropBox(point2D);

            if (cropLock != CropLock.None)
            {
                _cropLock = cropLock;
                Cursor    = Cursors.SizeAll;
            }
        }
Пример #2
0
 private void surface_MouseUp(object sender, MouseEventArgs e)
 {
     _cropLock = CropLock.None;
     Cursor    = Cursors.Default;
 }