This question is locked. New answers and comments are not allowed.
I'm using the ImageEditor in my page and everything works because I can actually edit and work with the image.
But once I save it, the saved image is just empty.
I gave a look to the bytes that it was saving and the whole Pixels array of the Bitmap contains the same value (-75xxx, i don't remember the missing digits).
Here's my C# code to handle the save
I'm sure that the image is saved because I can open the editor again with the same image and, after saving it, it shows empty even in the editor.
What am I doing wrong?
But once I save it, the saved image is just empty.
I gave a look to the bytes that it was saving and the whole Pixels array of the Bitmap contains the same value (-75xxx, i don't remember the missing digits).
Here's my C# code to handle the save
private const string BaseName = "/backgrounds/{0}.jpg";
private string _filename;
private void RadImageEditor_OnImageSaving(object sender, ImageSavingEventArgs e)
{
e.FileName = _filename = string.Format(BaseName, Path.GetRandomFileName());
e.JpgQuality = 100;
}
private void RadImageEditor_OnImageSaved(object sender, ImageSavedEventArgs e)
{
PreviewImage.Source = new BitmapImage(new Uri(e.FileName, UriKind.RelativeOrAbsolute));
}
I'm sure that the image is saved because I can open the editor again with the same image and, after saving it, it shows empty even in the editor.
What am I doing wrong?