We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ab7b22 commit dd705ebCopy full SHA for dd705eb
src/ImageSharp/Processing/Processors/Drawing/DrawImageProcessor{TPixelBg,TPixelFg}.cs
@@ -96,14 +96,14 @@ protected override void OnFrameApply(ImageFrame<TPixelBg> source)
96
top = 0;
97
}
98
99
- if (left + foregroundRectangle.Width > source.Width)
+ if (left > source.Width - foregroundRectangle.Width)
100
{
101
// will overhange, lets trim it down
102
int diff = (left + foregroundRectangle.Width) - source.Width;
103
foregroundRectangle.Width -= diff;
104
105
106
- if (top + foregroundRectangle.Height > source.Height)
+ if (top > source.Height - foregroundRectangle.Height)
107
108
109
int diff = (top + foregroundRectangle.Height) - source.Height;
0 commit comments