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); } }
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(); } } }
private Image ApplyEffects() { List <ImageEffect> imageEffects = GetImageEffects(); return(ImageEffectManager.ApplyEffects(DefaultImage, imageEffects)); }