Cleanup for code-analyses 2nd phase

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2483 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-02-13 11:45:51 +00:00
commit 5ffe3dfb42
15 changed files with 190 additions and 137 deletions

View file

@ -582,7 +582,9 @@ namespace Greenshot.Helpers {
if (element.attributes.ContainsKey("greenshot") && element.attributes["greenshot"] != null) {
string greenshotAction = element.attributes["greenshot"];
if ("hide".Equals(greenshotAction)) {
PixelizationFilter.Apply(graphicsTarget, returnBitmap, element.rectangle, 4);
using (Brush brush = new SolidBrush(Color.Black)) {
graphicsTarget.FillRectangle(brush, element.rectangle);
}
} else if ("red".Equals(greenshotAction)) {
using (Brush brush = new SolidBrush(Color.Red)) {
graphicsTarget.FillRectangle(brush, element.rectangle);