-
-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust AppendQuadDistortion and PrependQuadDistortion after rebase
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)
Check failure on line 299 in src/ImageSharp/Processing/ProjectiveTransformBuilder.cs GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)
Check failure on line 299 in src/ImageSharp/Processing/ProjectiveTransformBuilder.cs GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)
Check failure on line 299 in src/ImageSharp/Processing/ProjectiveTransformBuilder.cs GitHub Actions / Build (false, ubuntu-latest, net8.0, 8.0.x, -x64, false)
|
||
|
||
/// <summary> | ||
/// Prepends a raw matrix. | ||
|