private void SplitAll() { Project.Instance.Bmp = BitmapTools.CombineBitmap( Settings.Instance.Canvas.Width, Settings.Instance.Canvas.Height); }
private void SaveFileAs(ImageFormat format, string filename) { Bitmap bitmap = null; try { bitmap = BitmapTools.CombineBitmap(format, Settings.Instance.Canvas.Height, Settings.Instance.Canvas.Width); bitmap.Save(filename, format); } // ReSharper disable RedundantCatchClause catch (Exception exc) { throw; } // ReSharper restore RedundantCatchClause finally { if (bitmap != null) { bitmap.Dispose(); } } }