Fix trim/cropping 1px-1px too much

This commit is contained in:
Kurt
2015-07-19 10:07:34 -07:00
parent 69e94f7815
commit 96017c9141

View File

@@ -735,7 +735,7 @@ internal static Bitmap TrimBitmap(Bitmap source)
break;
}
srcRect = Rectangle.FromLTRB(xMin, yMin, xMax, yMax);
srcRect = Rectangle.FromLTRB(xMin, yMin, xMax + 1, yMax + 1); // fixed; was cropping 1px too much on the max end
}
finally
{