示例#1
0
 private void SplitAll()
 {
     Project.Instance.Bmp =
         BitmapTools.CombineBitmap(
             Settings.Instance.Canvas.Width,
             Settings.Instance.Canvas.Height);
 }
示例#2
0
        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();
                }
            }
        }