Exemple #1
0
        /// <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);
            }
        }
Exemple #2
0
        /// <summary>
        /// Save the edited image on given path
        /// </summary>
        /// <param name="imagePath">builder for multiple save options {@link SaveSettings}</param>
        /// <param name="saveSettings">builder for multiple save options {@link SaveSettings</param>
        /// <param name="onSaveListener">callback for saving image</param>
        public void SaveAsFile(string imagePath, SaveSettings saveSettings, INiceArt.IOnSaveListener onSaveListener)
        {
            try
            {
                Log.Debug(Tag, "Image Path: " + imagePath);

                ImagePath      = imagePath;
                OnSaveListener = onSaveListener;
                SaveSettings   = saveSettings;

                ParentView.SaveFilter(this);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Exemple #3
0
 public MyAsyncTask(NiceArtEditor editor, string imagePath, NiceArtEditorView parentView, INiceArt.IOnSaveListener onSaveListener, SaveSettings saveSettings, Bitmap saveBitmap, SaveType type) : base()
 {
     try
     {
         // do stuff
         Editor         = editor;
         ImagePath      = imagePath;
         ParentView     = parentView;
         OnSaveListener = onSaveListener;
         Type           = type;
         SaveSettings   = saveSettings;
         SaveBitmap     = saveBitmap;
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }