mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Added a side selection possibility for the TornEdgeEffect
This commit is contained in:
parent
b37ed3562d
commit
1d20e60679
3 changed files with 61 additions and 4 deletions
|
@ -37,6 +37,10 @@ namespace Greenshot.Forms {
|
|||
toothsize.Value = effect.ToothHeight;
|
||||
verticaltoothrange.Value = effect.VerticalToothRange;
|
||||
horizontaltoothrange.Value = effect.HorizontalToothRange;
|
||||
top.Checked = effect.Edges[0];
|
||||
right.Checked = effect.Edges[1];
|
||||
bottom.Checked = effect.Edges[2];
|
||||
left.Checked = effect.Edges[3];
|
||||
}
|
||||
|
||||
private void buttonOK_Click(object sender, EventArgs e) {
|
||||
|
@ -46,6 +50,7 @@ namespace Greenshot.Forms {
|
|||
effect.ToothHeight = (int)toothsize.Value;
|
||||
effect.VerticalToothRange = (int)verticaltoothrange.Value;
|
||||
effect.HorizontalToothRange = (int)horizontaltoothrange.Value;
|
||||
effect.Edges = new bool[] { top.Checked, right.Checked, bottom.Checked, left.Checked };
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue