mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -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);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1234,7 +1234,7 @@ namespace GreenshotPlugin.Core {
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grow canvas with pixel to the left, right, top and bottom
|
||||
/// Resize canvas with pixel to the left, right, top and bottom
|
||||
/// </summary>
|
||||
/// <param name="sourceBitmap"></param>
|
||||
/// <param name="backgroundColor">The color to fill with, or Color.Empty to take the default depending on the pixel format</param>
|
||||
|
@ -1243,7 +1243,7 @@ namespace GreenshotPlugin.Core {
|
|||
/// <param name="top"></param>
|
||||
/// <param name="bottom"></param>
|
||||
/// <returns>a new bitmap with the source copied on it</returns>
|
||||
public static Bitmap GrowCanvas(Bitmap sourceBitmap, Color backgroundColor, int left, int right, int top, int bottom) {
|
||||
public static Bitmap ResizeCanvas(Bitmap sourceBitmap, Color backgroundColor, int left, int right, int top, int bottom) {
|
||||
Bitmap newBitmap = CreateEmpty(sourceBitmap.Width + left + right, sourceBitmap.Height + top + bottom, sourceBitmap.PixelFormat, backgroundColor, sourceBitmap.HorizontalResolution, sourceBitmap.VerticalResolution);
|
||||
using (Graphics graphics = Graphics.FromImage(newBitmap)) {
|
||||
graphics.DrawImageUnscaled(sourceBitmap, left, top);
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace Greenshot.Plugin {
|
|||
/// <summary>
|
||||
/// The capture mode for Greenshot
|
||||
/// </summary>
|
||||
public enum CaptureMode { None, Region, FullScreen, ActiveWindow, Window, LastRegion, Clipboard, File, IE, Import, Video };
|
||||
public enum CaptureMode { None, Region, FullScreen, ActiveWindow, Window, LastRegion, Clipboard, File, IE, Import}; //, Video };
|
||||
public enum ScreenCaptureMode { Auto, FullScreen, Fixed};
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue