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:
RKrom 2014-05-28 09:35:08 +02:00
commit b37ed3562d
32 changed files with 187 additions and 65 deletions

View file

@ -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);
}
}