mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
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:
parent
8e6bcaa43a
commit
38989ba251
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue