Browse Source

Fix warnings

pull/1109/head
James Jackson-South 6 years ago
parent
commit
eb677f2eb9
  1. 2
      src/ImageSharp/Processing/Processors/Transforms/AffineTransformProcessor{TPixel}.cs
  2. 2
      src/ImageSharp/Processing/Processors/Transforms/CropProcessor{TPixel}.cs
  3. 2
      src/ImageSharp/Processing/Processors/Transforms/ProjectiveTransformProcessor{TPixel}.cs
  4. 2
      src/ImageSharp/Processing/Processors/Transforms/Resize/ResizeProcessor{TPixel}.cs
  5. 2
      src/ImageSharp/Processing/Processors/Transforms/RotateProcessor{TPixel}.cs

2
src/ImageSharp/Processing/Processors/Transforms/AffineTransformProcessor{TPixel}.cs

@ -45,7 +45,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms
if (this.transformMatrix.Equals(default) || this.transformMatrix.Equals(Matrix3x2.Identity)) if (this.transformMatrix.Equals(default) || this.transformMatrix.Equals(Matrix3x2.Identity))
{ {
// The clone will be blank here copy all the pixel data over // The clone will be blank here copy all the pixel data over
source.GetPixelSpan().CopyTo(destination.GetPixelSpan()); source.GetPixelMemoryGroup().CopyTo(destination.GetPixelMemoryGroup());
return; return;
} }

2
src/ImageSharp/Processing/Processors/Transforms/CropProcessor{TPixel}.cs

@ -41,7 +41,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms
&& this.SourceRectangle == this.cropRectangle) && this.SourceRectangle == this.cropRectangle)
{ {
// the cloned will be blank here copy all the pixel data over // the cloned will be blank here copy all the pixel data over
source.GetPixelSpan().CopyTo(destination.GetPixelSpan()); source.GetPixelMemoryGroup().CopyTo(destination.GetPixelMemoryGroup());
return; return;
} }

2
src/ImageSharp/Processing/Processors/Transforms/ProjectiveTransformProcessor{TPixel}.cs

@ -45,7 +45,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms
if (this.transformMatrix.Equals(default) || this.transformMatrix.Equals(Matrix4x4.Identity)) if (this.transformMatrix.Equals(default) || this.transformMatrix.Equals(Matrix4x4.Identity))
{ {
// The clone will be blank here copy all the pixel data over // The clone will be blank here copy all the pixel data over
source.GetPixelSpan().CopyTo(destination.GetPixelSpan()); source.GetPixelMemoryGroup().CopyTo(destination.GetPixelMemoryGroup());
return; return;
} }

2
src/ImageSharp/Processing/Processors/Transforms/Resize/ResizeProcessor{TPixel}.cs

@ -81,7 +81,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms
&& sourceRectangle == this.targetRectangle) && sourceRectangle == this.targetRectangle)
{ {
// The cloned will be blank here copy all the pixel data over // The cloned will be blank here copy all the pixel data over
source.GetPixelSpan().CopyTo(destination.GetPixelSpan()); source.GetPixelMemoryGroup().CopyTo(destination.GetPixelMemoryGroup());
return; return;
} }

2
src/ImageSharp/Processing/Processors/Transforms/RotateProcessor{TPixel}.cs

@ -98,7 +98,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms
if (MathF.Abs(degrees) < Constants.Epsilon) if (MathF.Abs(degrees) < Constants.Epsilon)
{ {
// The destination will be blank here so copy all the pixel data over // The destination will be blank here so copy all the pixel data over
source.GetPixelSpan().CopyTo(destination.GetPixelSpan()); source.GetPixelMemoryGroup().CopyTo(destination.GetPixelMemoryGroup());
return true; return true;
} }

Loading…
Cancel
Save