Hi,
I'm using the ImageEditor and it works fine for small pictures. But if I use for example an image with 5184x3888 pixels (180dpi, 5,6MB) my app crashes with the following exception:
"{System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.
at System.IO.UnmanagedMemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
at Syncfusion.UI.Xaml.ImageEditor.BitmapExtension.MergeShapeViewAndImage(WriteableBitmap originalBitmap, WriteableBitmap shapeViewBitmap)
at Syncfusion.UI.Xaml.ImageEditor.SfImageEditor.getMergedBitmap()
at Syncfusion.UI.Xaml.ImageEditor.SfImageEditor.getCurrentStream()
at Syncfusion.UI.Xaml.ImageEditor.SfImageEditor.SaveImage(String format, Size size)
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__7_0(Object state)
at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()}"
StackTrace:
" at System.IO.UnmanagedMemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)\r\n at Syncfusion.UI.Xaml.ImageEditor.BitmapExtension.MergeShapeViewAndImage(WriteableBitmap originalBitmap, WriteableBitmap shapeViewBitmap)\r\n at Syncfusion.UI.Xaml.ImageEditor.SfImageEditor.getMergedBitmap()\r\n at Syncfusion.UI.Xaml.ImageEditor.SfImageEditor.getCurrentStream()\r\n at Syncfusion.UI.Xaml.ImageEditor.SfImageEditor.SaveImage(String format, Size size)\r\n at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__7_0(Object state)\r\n at System.Threading.WinRTSynchronizationContextBase.Invoker.InvokeCore()"
Do you have any ideas how to fix this problem?
Regards,
Frank Effenberger