git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2569 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-04-19 15:17:38 +00:00
commit c6c331c0e2

View file

@ -47,6 +47,9 @@ namespace Greenshot.Drawing.Filters {
int blurRadius = GetFieldValueAsInt(FieldType.BLUR_RADIUS);
double previewQuality = GetFieldValueAsDouble(FieldType.PREVIEW_QUALITY);
Rectangle applyRect = ImageHelper.CreateIntersectRectangle(applyBitmap.Size, rect, Invert);
if (applyRect.Width == 0 || applyRect.Height == 0) {
return;
}
GraphicsState state = graphics.Save();
if (Invert) {
graphics.SetClip(applyRect);