mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Added icons for the new tools, also changed some of the logic so it is possible to show the number of the next "label" in the tool button.
This commit is contained in:
parent
48187fcdba
commit
b37ed3562d
32 changed files with 187 additions and 65 deletions
|
@ -72,6 +72,7 @@ namespace Greenshot.Core {
|
|||
ToothHeight = 12;
|
||||
HorizontalToothRange = 20;
|
||||
VerticalToothRange = 20;
|
||||
Edges = new bool[] {true, false, true, true};
|
||||
}
|
||||
public int ToothHeight {
|
||||
get;
|
||||
|
@ -85,8 +86,12 @@ namespace Greenshot.Core {
|
|||
get;
|
||||
set;
|
||||
}
|
||||
public bool[] Edges {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
public override Image Apply(Image sourceImage, out Point offsetChange) {
|
||||
using (Image tmpTornImage = ImageHelper.CreateTornEdge(sourceImage, ToothHeight, HorizontalToothRange, VerticalToothRange)) {
|
||||
using (Image tmpTornImage = ImageHelper.CreateTornEdge(sourceImage, ToothHeight, HorizontalToothRange, VerticalToothRange, Edges)) {
|
||||
return ImageHelper.CreateShadow(tmpTornImage, Darkness, ShadowSize, ShadowOffset, out offsetChange, PixelFormat.Format32bppArgb);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue