From 38989ba2518cc7528c87a6b975e9f45776fcb6b1 Mon Sep 17 00:00:00 2001 From: RKrom Date: Thu, 11 Apr 2013 08:22:51 +0000 Subject: [PATCH] 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 --- Greenshot/Drawing/Filters/BrightnessFilter.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Greenshot/Drawing/Filters/BrightnessFilter.cs b/Greenshot/Drawing/Filters/BrightnessFilter.cs index 5b0093768..8fdb8d3c3 100644 --- a/Greenshot/Drawing/Filters/BrightnessFilter.cs +++ b/Greenshot/Drawing/Filters/BrightnessFilter.cs @@ -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); }