コード例 #1
0
 /// <summary>
 /// Save the edited image on given path
 /// </summary>
 /// <param name="imagePath">path on which image to be saved</param>
 /// <param name="onSaveListener">callback for saving image</param>
 public void SaveImage(string imagePath, INiceArt.IOnSaveListener onSaveListener)
 {
     try
     {
         SaveAsFile(imagePath, onSaveListener);
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
コード例 #2
0
 /// <summary>
 /// Save the edited image on given path
 /// </summary>
 /// <param name="imagePath">path on which image to be saved</param>
 /// <param name="onSaveListener">callback for saving image</param>
 public void SaveImage(string imagePath, INiceArt.IOnSaveListener onSaveListener)
 {
     try
     {
         SaveAsFile(imagePath, onSaveListener);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
コード例 #3
0
        public void SaveAsFile(string imagePath, INiceArt.IOnSaveListener onSaveListener)
        {
            try
            {
                SaveSettings saveSettings = new SaveSettings.Builder()
                                            .SetClearViewsEnabled(true)
                                            .SetTransparencyEnabled(true)
                                            .Build();

                SaveAsFile(imagePath, saveSettings, onSaveListener);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #4
0
        public void SaveAsFile(string imagePath, INiceArt.IOnSaveListener onSaveListener)
        {
            try
            {
                SaveSettings saveSettings = new SaveSettings.Builder()
                                            .SetClearViewsEnabled(true)
                                            .SetTransparencyEnabled(true)
                                            .Build();

                SaveAsFile(imagePath, saveSettings, onSaveListener);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
コード例 #5
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
            {
                Console.WriteLine(Tag, "Image Path: " + imagePath);

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

                ParentView.SaveFilter(this);
            }
            catch (Exception e)
            {
                Methods.DisplayReportResultTrack(e);
            }
        }
コード例 #6
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);
            }
        }
コード例 #7
0
ファイル: NiceArtEditor.cs プロジェクト: gdsghost/BasedOnRate
 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)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
コード例 #8
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);
     }
 }