From 2d6b58f72256e88308419c18a87ad5603c7a6b07 Mon Sep 17 00:00:00 2001 From: RKrom Date: Wed, 27 Feb 2013 17:22:43 +0000 Subject: [PATCH] Small fix for compositing mode and a log statement. git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2511 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4 --- GreenshotPlugin/Core/ImageHelper.cs | 6 ++---- GreenshotPlugin/Core/ImageOutput.cs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/GreenshotPlugin/Core/ImageHelper.cs b/GreenshotPlugin/Core/ImageHelper.cs index d0bd35ed3..50dc3bb0b 100644 --- a/GreenshotPlugin/Core/ImageHelper.cs +++ b/GreenshotPlugin/Core/ImageHelper.cs @@ -682,7 +682,6 @@ namespace GreenshotPlugin.Core { BoxBlurVertical(fastBitmap, range); } - return fastBitmap.UnlockAndReturnBitmap(); } } @@ -936,6 +935,7 @@ namespace GreenshotPlugin.Core { graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; graphics.CompositingQuality = CompositingQuality.HighQuality; graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; + graphics.CompositingMode = CompositingMode.SourceCopy; // Draw "shadow" offsetted ImageAttributes ia = new ImageAttributes(); @@ -955,9 +955,7 @@ namespace GreenshotPlugin.Core { if (!GDIplus.ApplyBlur(returnImage, newImageRectangle, shadowSize, false)) { // something went wrong, try normal software blur //returnImage = CreateBlur(returnImage, newImageRectangle, true, shadowSize, 1d, false, newImageRectangle); - ApplyBoxBlur(returnImage, shadowSize); - - //returnImage = FastBlur(tmpImage, shadowSize - 1); + ApplyBoxBlur(returnImage, shadowSize-2); } if (returnImage != null) { diff --git a/GreenshotPlugin/Core/ImageOutput.cs b/GreenshotPlugin/Core/ImageOutput.cs index 43547d583..75b4371d4 100644 --- a/GreenshotPlugin/Core/ImageOutput.cs +++ b/GreenshotPlugin/Core/ImageOutput.cs @@ -280,7 +280,7 @@ namespace GreenshotPlugin.Core { } } } else if (isAlpha && !outputSettings.ReduceColors) { - LOG.Info("Skipping color reduction as the image has alpha"); + LOG.Info("Skipping 'optional' color reduction as the image has alpha"); } } }