예제 #1
0
        private void btnSettingsExport_Click(object sender, EventArgs e)
        {
            List <ImageEffect> imageEffects = GetImageEffects();

            if (imageEffects != null && imageEffects.Count > 0)
            {
                string json = ImageEffectManager.ExportEffects(imageEffects);
                ClipboardHelpers.CopyText(json);
                MessageBox.Show("Image effects copied to your clipboard.", "ShareX", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
예제 #2
0
 private void btnSettingsImport_Click(object sender, EventArgs e)
 {
     if (Clipboard.ContainsText())
     {
         string             json         = Clipboard.GetText();
         List <ImageEffect> imageEffects = ImageEffectManager.ImportEffects(json);
         if (imageEffects != null && imageEffects.Count > 0)
         {
             ClearEffects();
             AddEffects(imageEffects);
             UpdatePreview();
         }
     }
 }
예제 #3
0
        private Image ApplyEffects()
        {
            List <ImageEffect> imageEffects = GetImageEffects();

            return(ImageEffectManager.ApplyEffects(DefaultImage, imageEffects));
        }