mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 13:57:14 -05:00
Fix trim/cropping 1px-1px too much
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user