Skip to content

Commit e7e9eff

Browse files
committed
Adjust AppendQuadDistortion and PrependQuadDistortion after rebase
1 parent 81026ba commit e7e9eff

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/ImageSharp/Processing/ProjectiveTransformBuilder.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,9 @@ public ProjectiveTransformBuilder AppendTranslation(Vector2 position)
280280
/// <param name="bottomLeft">The bottom-left corner point of the distorted quad.</param>
281281
/// <returns>The <see cref="ProjectiveTransformBuilder"/>.</returns>
282282
public ProjectiveTransformBuilder PrependQuadDistortion(PointF topLeft, PointF topRight, PointF bottomRight, PointF bottomLeft)
283-
=> this.Prepend(size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft));
283+
=> this.Prepend(
284+
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft),
285+
size => QuadDistortionHelper.ComputeQuadDistortMatrix(new Rectangle(Point.Empty, size), topLeft, topRight, bottomRight, bottomLeft));
284286

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

296301
/// <summary>
297302
/// Prepends a raw matrix.

0 commit comments

Comments
 (0)