Browse Source

Fix switched assignments

pull/1945/head
James Jackson-South 4 years ago
parent
commit
1807350176
  1. 4
      src/ImageSharp/Processing/Processors/Transforms/Linear/AffineTransformProcessor{TPixel}.cs
  2. 4
      src/ImageSharp/Processing/Processors/Transforms/Linear/ProjectiveTransformProcessor{TPixel}.cs

4
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++)
{

4
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++)
{

Loading…
Cancel
Save