Toolbar items for effects and rotation

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1740 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
TBraun 2012-04-02 16:55:59 +00:00
commit ee950872e9
8 changed files with 553 additions and 469 deletions

View file

@ -571,11 +571,14 @@ namespace Greenshot.Drawing {
case Effects.Grayscale:
newImage = ImageHelper.CreateGrayscale((Bitmap)Image);
break;
case Effects.Rotate90:
case Effects.Rotate270:
case Effects.Invert:
newImage = ImageHelper.CreateNegative((Bitmap)Image);
break;
case Effects.RotateClockwise:
case Effects.RotateCounterClockwise:
MakeUndoable(new DrawableContainerBoundsChangeMemento(elements.AsIDrawableContainerList()), false);
RotateFlipType rotateFlipType = RotateFlipType.Rotate270FlipNone;
if (effect == Effects.Rotate90) {
if (effect == Effects.RotateClockwise) {
rotateFlipType = RotateFlipType.Rotate90FlipNone;
}
foreach (DrawableContainer drawableContainer in elements) {