private void con_resizeAllFrames_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); Bitmap bitmapResize = _listFramesPrivate[trackBar.Value]; var resize = new Resize(bitmapResize); if (resize.ShowDialog(this) == DialogResult.OK) { Size resized = resize.GetSize(); _listFramesPrivate = ImageUtil.ResizeAllBitmap(_listFramesPrivate, resized.Width, resized.Height); pictureBitmap.Image = _listFramesPrivate[trackBar.Value]; ResizeFormToImage(); } resize.Dispose(); }
private void con_resizeAllFrames_Click(object sender, EventArgs e) { Bitmap bitmapResize = _listFramesEdit[trackBar.Value].From(); var resize = new Resize(bitmapResize); if (resize.ShowDialog(this) == DialogResult.OK) { ResetUndoProp(); Size resized = resize.GetSize(); ImageUtil.ResizeBitmap(_listFramesEdit, resized.Width, resized.Height); pictureBitmap.Image = _listFramesEdit[trackBar.Value].From(); ResizeFormToImage(); } resize.Dispose(); GC.Collect(); }