mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Secured feature Effects.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1643 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
5242a70121
commit
5aa6249231
3 changed files with 63 additions and 0 deletions
|
@ -378,6 +378,11 @@ namespace Greenshot {
|
|||
this.saveElementsToolStripMenuItem.Text = lang.GetString(LangKey.editor_save_objects);
|
||||
this.loadElementsToolStripMenuItem.Text = lang.GetString(LangKey.editor_load_objects);
|
||||
this.autoCropToolStripMenuItem.Text = lang.GetString(LangKey.editor_autocrop);
|
||||
if (coreConf.isExperimentalFeatureEnabled("Effects")) {
|
||||
this.shadowToolStripMenuItem.Text = lang.GetString(LangKey.editor_shadow);
|
||||
this.shadowToolStripMenuItem.Visible = true;
|
||||
this.tornEdgeToolStripMenuItem.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
public ISurface Surface {
|
||||
|
@ -1163,5 +1168,13 @@ namespace Greenshot {
|
|||
refreshFieldControls();
|
||||
}
|
||||
}
|
||||
|
||||
void TornEdgeToolStripMenuItemClick(object sender, EventArgs e) {
|
||||
surface.ApplyBitmapEffect(Effects.TornEdge);
|
||||
}
|
||||
|
||||
void ShadowToolStripMenuItemClick(object sender, EventArgs e) {
|
||||
surface.ApplyBitmapEffect(Effects.Shadow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue