Disabled compiling of unused code for the 1.1 release

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2387 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-12-17 11:03:23 +00:00
commit a57fa7086f
7 changed files with 103 additions and 84 deletions

View file

@ -185,10 +185,10 @@ namespace Greenshot.Core {
}
/// <summary>
/// GrowEffect
/// ResizeCanvasEffect
/// </summary>
public class GrowEffect : IEffect {
public GrowEffect(int left, int right, int top, int bottom) {
public class ResizeCanvasEffect : IEffect {
public ResizeCanvasEffect(int left, int right, int top, int bottom) {
Left = left;
Right = right;
Top = top;
@ -218,7 +218,7 @@ namespace Greenshot.Core {
public Bitmap Apply(Bitmap sourceBitmap, out Point offsetChange) {
// Make sure the elements move according to the offset the effect made the bitmap move
offsetChange = new Point(Left, Top);
return ImageHelper.GrowCanvas(sourceBitmap, BackgroundColor, Left, Right, Top, Bottom);
return ImageHelper.ResizeCanvas(sourceBitmap, BackgroundColor, Left, Right, Top, Bottom);
}
}
}