mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
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:
parent
86dc1fa60d
commit
a57fa7086f
7 changed files with 103 additions and 84 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue