示例#1
0
        private void EdImg_ImageSaving(object sender, Syncfusion.SfImageEditor.XForms.ImageSavingEventArgs args)
        {
            var st = args.Stream;

            stream = (MemoryStream)st;
            Save();
        }
        public async void Handle_ImageSaving(object sender, Syncfusion.SfImageEditor.XForms.ImageSavingEventArgs args)
        {
            args.Cancel = true;
            var data = args.Stream;

            ContentSaved?.Invoke(this, data);
            MessagingCenter.Send(this, MessageKey.MEDIA_EDIT_SAVED, data);
            await Navigation.PopModalAsync();
        }
        void imagebackground_ImageSaving(System.Object sender, Syncfusion.SfImageEditor.XForms.ImageSavingEventArgs args)
        {
            Current      vm = (Current)this.BindingContext;
            MemoryStream m  = new MemoryStream();

            args.Stream.CopyTo(m);

            vm.array = m.ToArray();
            //  vm.SaveImageCommand(data,this);
            args.Cancel = true;
        }
示例#4
0
 private async void SfImageEditor_ImageSaving(object sender, Syncfusion.SfImageEditor.XForms.ImageSavingEventArgs args)
 {
     args.Cancel = true;
     using (var ms = new MemoryStream())
     {
         args.Stream.CopyTo(ms);
         MessagingCenter.Send(this, ImageSavedMessage, ms.ToArray());
         _saved = true;
         await Navigation.PopAsync();
     }
 }
        void imagebackground_ImageSaving(System.Object sender, Syncfusion.SfImageEditor.XForms.ImageSavingEventArgs args)
        {
            CurrentWithoutDetail vm = (CurrentWithoutDetail)this.BindingContext;

            MemoryStream m = new MemoryStream();

            args.Stream.CopyTo(m);

            byte[] data = m.ToArray();
            vm.Save(data);
            // args.Cancel = true;
        }