We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Overwrite Original Image

Thread ID:

Created:

Updated:

Platform:

Replies:

131314 Jul 4,2017 09:31 AM Jul 5,2017 11:53 PM Xamarin.Forms 1
loading
Tags: SfImageEditor
Robbie Philips
Asked On July 4, 2017 09:31 AM

Hi There,

Is it possible for the editor to overwrite the image rather than saving a new copy.  Alternatively is it possible to get the file path for the saved image in order to do something with it.  I have tried subscribing to the ImageSaved event of the Editor but the property ImageSavedEventArgs.Location is an empty string rather than any file path.

So far I have only tried this on iOS.

Its a great control by the way :-)

Robbie

P.S here is some of my code:

SfImageEditorPage editor = new SfImageEditorPage(pathToFileToEdit);
 editor.Editor.ImageSaved += Editor_ImageSaved;
await Navigation.PushAsync(new NavigationPage(editor));


private void Editor_ImageSaved(object sender, ImageSavedEventArgs args)
{
     var test = args.Location; // test is an empty string
}


public class SfImageEditorPage : ContentPage
    {
        SfImageEditor _editor;

        public SfImageEditorPage(string file)
        {
            _editor = new SfImageEditor();
            _editor.Source = ImageSource.FromFile(file);
            Content = _editor;
        }

        public SfImageEditorPage(Stream file)
        {
            _editor = new SfImageEditor();
            _editor.Source = ImageSource.FromStream(() => file);
            Content = _editor;
        }

        public SfImageEditor Editor { get => _editor; }

    }

Ashwin Kumaravel [Syncfusion]
Replied On July 5, 2017 11:53 PM

Hi Robbie,

Thanks for contacting Syncfusion Support.

We could reproduce the reported issue” ImageSavedEventArgs.Location is an empty” at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/  

Regards,
Ashwin K



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;