Example #1
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);
            }
        }
Example #2
0
        /// <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);
            }
        }