/// <summary>
        /// Save the edited image as bitmap
        /// </summary>
        /// <param name="saveSettings">builder for multiple save options {@link SaveSettings}</param>
        /// <param name="onSaveBitmap">callback for saving image as bitmap</param>
        public void SaveAsBitmap(SaveSettings saveSettings, INiceArt.IOnSaveBitmap onSaveBitmap)
        {
            try
            {
                SaveSettings = saveSettings;

                ParentView.SaveFilter(this);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
 public async Task SaveBitmap(INiceArt.IOnSaveBitmap onSaveBitmap)
 {
     try
     {
         MOnSaveBitmap = onSaveBitmap;
         IsSaveImage   = true;
         RequestRender();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Example #3
0
 public async Task SaveBitmap(INiceArt.IOnSaveBitmap onSaveBitmap)
 {
     try
     {
         MOnSaveBitmap = onSaveBitmap;
         IsSaveImage   = true;
         RequestRender();
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
        /// <summary>
        /// Save the edited image as bitmap
        /// </summary>
        /// <param name="saveSettings">builder for multiple save options {@link SaveSettings}</param>
        /// <param name="onSaveBitmap">callback for saving image as bitmap</param>
        public void SaveAsBitmap(SaveSettings saveSettings, INiceArt.IOnSaveBitmap onSaveBitmap)
        {
            try
            {
                SaveSettings = saveSettings;

                ParentView.SaveFilter(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        /// <summary>
        ///  Save the edited image as bitmap
        /// </summary>
        /// <param name="onSaveBitmap">callback for saving image as bitmap</param>
        public void SaveAsBitmap(INiceArt.IOnSaveBitmap onSaveBitmap)
        {
            try
            {
                SaveSettings saveSettings = new SaveSettings.Builder()
                                            .SetClearViewsEnabled(true)
                                            .SetTransparencyEnabled(true)
                                            .Build();

                SaveAsBitmap(saveSettings, onSaveBitmap);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
        /// <summary>
        ///  Save the edited image as bitmap
        /// </summary>
        /// <param name="onSaveBitmap">callback for saving image as bitmap</param>
        public void SaveAsBitmap(INiceArt.IOnSaveBitmap onSaveBitmap)
        {
            try
            {
                SaveSettings saveSettings = new SaveSettings.Builder()
                                            .SetClearViewsEnabled(true)
                                            .SetTransparencyEnabled(true)
                                            .Build();

                SaveAsBitmap(saveSettings, onSaveBitmap);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Example #7
0
 public async void SaveFilter(INiceArt.IOnSaveBitmap onSaveBitmap)
 {
     try
     {
         MOnSaveBitmap = onSaveBitmap;
         if (MImageFilterView.Visibility == ViewStates.Visible)
         {
             await MImageFilterView.SaveBitmap(this);
         }
         else
         {
             onSaveBitmap.OnBitmapReady(MImgSource.GetBitmap(), SaveType.Normal);
         }
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
 public async void SaveFilter(INiceArt.IOnSaveBitmap onSaveBitmap)
 {
     try
     {
         MOnSaveBitmap = onSaveBitmap;
         if (MImageFilterView.Visibility == ViewStates.Visible)
         {
             await MImageFilterView.SaveBitmap(this);
         }
         else
         {
             onSaveBitmap.OnBitmapReady(MImgSource.GetBitmap(), SaveType.Normal);
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }