Fix for not taking the brightness setting into the drawing.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2559 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-04-11 08:22:51 +00:00
commit 38989ba251

View file

@ -54,7 +54,8 @@ namespace Greenshot.Drawing.Filters {
graphics.SetClip(applyRect);
graphics.ExcludeClip(rect);
}
ImageAttributes ia = ImageHelper.CreateAdjustAttributes(0.9f, 1f, 1f);
float brightness = GetFieldValueAsFloat(FieldType.BRIGHTNESS);
ImageAttributes ia = ImageHelper.CreateAdjustAttributes(brightness, 1f, 1f);
graphics.DrawImage(applyBitmap, applyRect, applyRect.X, applyRect.Y, applyRect.Width, applyRect.Height, GraphicsUnit.Pixel, ia);
graphics.Restore(state);
}