Browse Source

Fix skew

pull/297/head
James Jackson-South 9 years ago
parent
commit
4f38761d54
  1. 2
      src/ImageSharp/Processing/Processors/Transforms/SkewProcessor.cs

2
src/ImageSharp/Processing/Processors/Transforms/SkewProcessor.cs

@ -73,7 +73,7 @@ namespace SixLabors.ImageSharp.Processing.Processors
/// <inheritdoc/> /// <inheritdoc/>
protected override void BeforeApply(ImageBase<TPixel> source, Rectangle sourceRectangle) protected override void BeforeApply(ImageBase<TPixel> source, Rectangle sourceRectangle)
{ {
this.processMatrix = Matrix3x2Extensions.CreateSkew(-this.AngleX, -this.AngleY, new Point(0, 0)); this.processMatrix = Matrix3x2Extensions.CreateSkewDegrees(-this.AngleX, -this.AngleY, new Point(0, 0));
if (this.Expand) if (this.Expand)
{ {
this.CreateNewCanvas(sourceRectangle, this.processMatrix); this.CreateNewCanvas(sourceRectangle, this.processMatrix);

Loading…
Cancel
Save