Exemplo n.º 1
0
        private void imgVideo_MouseMove(object sender, MouseEventArgs e)
        {
            if (Gnd.i.md == null)
            {
                return;
            }

            if (_currFrame == null)
            {
                return;
            }

            if (Gnd.i.md.ed.v.isSelecting() == false)
            {
                return;
            }

            XYPoint p = Utils.getPictureBoxPointToImagePoint(this.imgVideo, new XYPoint(e.Location), true);

            if (p == null)
            {
                return;
            }

            p.toInt();

            Gnd.i.md.ed.v.selectDest = p;

            _needRefreshVideoFrameNoSeek = true;
        }
Exemplo n.º 2
0
        private void imgVideo_MouseDown(object sender, MouseEventArgs e)
        {
            if (Gnd.i.md == null)
            {
                return;
            }

            if (_currFrame == null)
            {
                return;
            }

            if (e.Button != MouseButtons.Left)
            {
                return;
            }

            XYPoint p = Utils.getPictureBoxPointToImagePoint(this.imgVideo, new XYPoint(e.Location));

            if (p == null)
            {
                return;
            }

            p.toInt();

            Gnd.i.md.ed.v.selectOrig = p;
            Gnd.i.md.ed.v.selectDest = p;
            Gnd.i.md.ed.v.selectRect = null;

            _needRefreshVideoFrameNoSeek = true;
        }