public static BitmapSource Proceed([NotNull] string filename, Size size, bool allowNoCrop, Rect?startRect, out Rect resultRelativeRect) { var dialog = new ImageEditor(filename, size, allowNoCrop, startRect); dialog.ShowDialog(); resultRelativeRect = dialog.ResultRectRelative; return(dialog.Result); }
public static BitmapSource Proceed(string filename, Size size) { var dialog = new ImageEditor(filename, size); dialog.ShowDialog(); return dialog.Result; }