We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fc17c9 commit 81822bbCopy full SHA for 81822bb
1 file changed
Src/PngDecoder/PNGDecode.cs
@@ -64,7 +64,7 @@ public byte[] DecodeImageData()
64
return result;
65
}
66
67
- ZLibStream GetFilteredRawStream2()
+ // TODO write own ZLib to minimize foot-print even more
68
{
69
var result = new MemoryStream();
70
foreach (var chunk in _chunks.Where(a => a.Signature == PngChunkType.IDAT))
@@ -73,7 +73,7 @@ ZLibStream GetFilteredRawStream2()
73
try
74
75
chunk.GetData(data);
76
- result.Write(data);
+ result.Write(data, 0, (int)chunk.Length);
77
78
finally
79
0 commit comments