Bug in PngDecoder.Decode

Oystein Bjorke 4 years ago 0
This discussion was imported from CodePlex

thomasdr wrote at 2013-11-14 14:00:

When validating the PNG header, signature[5] should be 0x0A, not 0x0A9. This is in the fadfacbc904d version of the source.

thomasdr wrote at 2013-11-14 14:23:

I guess I was premature in reporting this. Apparently, PNG decoding doesn't work at all.

objo wrote at 2013-11-14 20:59:

Thanks, I fixed the typo in the signature! There was also an error when checking the header length. I also added the DEFLATE implementation in its current state, not properly working yet. This implementation is required to support imported png images in the pdf export. https://oxyplot.codeplex.com/workitem/10091