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
This commit is contained in:
RKrom 2013-02-27 17:22:43 +00:00
commit 2d6b58f722
2 changed files with 3 additions and 5 deletions

View file

@ -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) {

View file

@ -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");
}
}
}