Browse Source

Use new Swap method

pull/30/head
James Jackson-South 9 years ago
parent
commit
6b35810325
  1. 6
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

6
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -12,6 +12,8 @@ namespace ImageSharp.Formats
using System.Linq;
using System.Text;
using static ComparableExtensions;
/// <summary>
/// Performs the png decoding operation.
/// </summary>
@ -319,9 +321,7 @@ namespace ImageSharp.Formats
this.ProcessDefilteredScanline(scanline, y, pixels);
byte[] temp = previousScanline;
previousScanline = scanline;
scanline = temp;
Swap(ref scanline, ref previousScanline);
}
}
finally

Loading…
Cancel
Save