mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 18:57:28 -07:00
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:
parent
2c1a56e868
commit
2d6b58f722
2 changed files with 3 additions and 5 deletions
|
@ -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) {
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue