Browse Source

Update ResamplerExtensions.cs

af/octree-no-pixelmap
James Jackson-South 6 years ago
parent
commit
d98f65a749
  1. 4
      src/ImageSharp/Processing/Processors/Transforms/ResamplerExtensions.cs

4
src/ImageSharp/Processing/Processors/Transforms/ResamplerExtensions.cs

@ -38,7 +38,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms
if (matrix.Equals(default) || matrix.Equals(Matrix3x2.Identity)) if (matrix.Equals(default) || matrix.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;
} }
@ -110,7 +110,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.Transforms
if (matrix.Equals(default) || matrix.Equals(Matrix4x4.Identity)) if (matrix.Equals(default) || matrix.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;
} }

Loading…
Cancel
Save