Beispiel #1
0
        private void con_cropAll_Click(object sender, EventArgs e)
        {
            var crop = new Crop(_listFramesEdit[trackBar.Value].From());

            if (crop.ShowDialog(this) == DialogResult.OK)
            {
                ResetUndoProp();

                ImageUtil.Crop(_listFramesEdit, crop.Rectangle);
                pictureBitmap.Image = _listFramesEdit[trackBar.Value].From();

                ResizeFormToImage();
            }

            crop.Dispose();
            GC.Collect();
        }
Beispiel #2
0
        private void con_cropAll_Click(object sender, EventArgs e)
        {
            btnUndo.Enabled = true;
            btnReset.Enabled = true;

            _listFramesUndo.Clear();
            _listFramesUndo = new List<Bitmap>(_listFramesPrivate);

            _listDelayUndo.Clear();
            _listDelayUndo = new List<int>(_listDelayPrivate);

            Crop crop = new Crop(_listFramesPrivate[trackBar.Value]);
            if (crop.ShowDialog(this) == DialogResult.OK)
            {
                _listFramesPrivate = ImageUtil.Crop(_listFramesPrivate, crop.Rectangle);

                pictureBitmap.Image = _listFramesPrivate[trackBar.Value];

                ResizeFormToImage();
            }

            crop.Dispose();
        }
Beispiel #3
0
        private void cropAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            btnUndo.Enabled = true;
            btnReset.Enabled = true;

            listFramesUndo.Clear();
            listFramesUndo = new List<Bitmap>(listFramesPrivate);

            Crop crop = new Crop(listFramesPrivate[trackBar.Value]);
            if (crop.ShowDialog(this) == DialogResult.OK)
            {
                listFramesPrivate = ImageUtil.Crop(listFramesPrivate, crop.Rectangle);

                pictureBitmap.Image = listFramesPrivate[trackBar.Value];

                ResizeFormToImage();
            }

            crop.Dispose();
        }