Fixed crop issue

This commit is contained in:
Jaex 2017-10-25 04:24:40 +03:00
parent 2967ef2643
commit fefca5eef2

View file

@ -216,7 +216,7 @@ internal void InitBackground(Image img)
if (IsEditorMode)
{
ImageRectangle = new Rectangle(ImageRectangle.X, ImageRectangle.Y, Image.Width, Image.Height);
ImageRectangle = new Rectangle(0, 0, Image.Width, Image.Height);
using (Bitmap background = new Bitmap(Image.Width, Image.Height))
using (Graphics g = Graphics.FromImage(background))