Browse Source

Merge pull request #347 from SixLabors/fix-345

Fix #345
pull/350/head
Scott Williams 9 years ago
committed by GitHub
parent
commit
72f02b96bf
  1. 2
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

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

@ -301,7 +301,7 @@ namespace SixLabors.ImageSharp.Formats.Png
int mask = 0xFF >> (8 - bits); int mask = 0xFF >> (8 - bits);
int resultOffset = 0; int resultOffset = 0;
for (int i = 0; i < bytesPerScanline; i++) for (int i = 0; i < bytesPerScanline - 1; i++)
{ {
byte b = source[i]; byte b = source[i];
for (int shift = 0; shift < 8; shift += bits) for (int shift = 0; shift < 8; shift += bits)

Loading…
Cancel
Save