Skip to content

Commit

Permalink
Adjust AppendQuadDistortion and PrependQuadDistortion after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Socolin committed Jul 31, 2024
1 parent 81026ba commit e7e9eff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ImageSharp/Processing/ProjectiveTransformBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ public ProjectiveTransformBuilder AppendTranslation(Vector2 position)
/// <param name="bottomLeft">The bottom-left corner point of the distorted quad.</param>
/// <returns>The <see cref="ProjectiveTransformBuilder"/>.</returns>
public ProjectiveTransformBuilder PrependQuadDistortion(PointF topLeft, PointF topRight, PointF bottomRight, PointF bottomLeft)
=> this.Prepend(size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft));
=> this.Prepend(
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft),
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft));

/// <summary>
/// Appends a quad distortion matrix using the specified corner points.
Expand All @@ -291,7 +293,10 @@ public ProjectiveTransformBuilder PrependQuadDistortion(PointF topLeft, PointF t
/// <param name="bottomLeft">The bottom-left corner point of the distorted quad.</param>
/// <returns>The <see cref="ProjectiveTransformBuilder"/>.</returns>
public ProjectiveTransformBuilder AppendQuadDistortion(PointF topLeft, PointF topRight, PointF bottomRight, PointF bottomLeft)
=> this.Append(size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft));
=> this.Append(
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft),
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft)
);

Check failure on line 299 in src/ImageSharp/Processing/ProjectiveTransformBuilder.cs

View workflow job for this annotation

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

Check failure on line 299 in src/ImageSharp/Processing/ProjectiveTransformBuilder.cs

View workflow job for this annotation

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

Check failure on line 299 in src/ImageSharp/Processing/ProjectiveTransformBuilder.cs

View workflow job for this annotation

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)

Check failure on line 299 in src/ImageSharp/Processing/ProjectiveTransformBuilder.cs

View workflow job for this annotation

GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)


/// <summary>
/// Prepends a raw matrix.
Expand Down

0 comments on commit e7e9eff

Please sign in to comment.