backgroundThumbnail.Show();
thumbnailImg = new ElmSharp.Image(App.MainWindow);
- thumbnailImg.Load(ThumbnailPath);
+ thumbnailImg.Load((ThumbnailPath != null) ? ThumbnailPath : (CurrentImage.Source as FileImageSource).File);
thumbnailImg.Orientation = imgOrientation;
thumbnailImg.Resize(backgroundThumbnail.Geometry.Width, backgroundThumbnail.Geometry.Height);
thumbnailImg.Move(backgroundThumbnail.Geometry.X, backgroundThumbnail.Geometry.Y);
thumbnailDim.Show();
clippingImg = new ElmSharp.Image(App.MainWindow);
- clippingImg.Load(ThumbnailPath);
+ clippingImg.Load((ThumbnailPath != null) ? ThumbnailPath : (CurrentImage.Source as FileImageSource).File);
clippingImg.Orientation = imgOrientation;
clippingImg.Resize(thumbnailImg.Geometry.Width, thumbnailImg.Geometry.Height);
clippingImg.Geometry = thumbnailImg.Geometry;