From 96017c91414ece7918f026e720c7bc5c80491ef6 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sun, 19 Jul 2015 10:07:34 -0700 Subject: [PATCH] Fix trim/cropping 1px-1px too much --- pk3DS/Util.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pk3DS/Util.cs b/pk3DS/Util.cs index adc9d74..b99c25a 100644 --- a/pk3DS/Util.cs +++ b/pk3DS/Util.cs @@ -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 {