diff --git a/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs index beb14ad019..1cd2514659 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs @@ -201,9 +201,9 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms float yRadius = this.yRadius; float xRadius = this.xRadius; int minY = this.bounds.Y; - int maxY = this.bounds.Right - 1; + int maxY = this.bounds.Bottom - 1; int minX = this.bounds.X; - int maxX = this.bounds.Bottom - 1; + int maxX = this.bounds.Right - 1; for (int y = rows.Min; y < rows.Max; y++) { diff --git a/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs index 00bb074001..fc2cb0c851 100644 --- a/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs @@ -200,9 +200,9 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms float yRadius = this.yRadius; float xRadius = this.xRadius; int minY = this.bounds.Y; - int maxY = this.bounds.Right - 1; + int maxY = this.bounds.Bottom - 1; int minX = this.bounds.X; - int maxX = this.bounds.Bottom - 1; + int maxX = this.bounds.Right - 1; for (int y = rows.Min; y < rows.Max; y++) {