iTextSharp.text.pdf.codec.PngImage.DecodeUpFilter C# (CSharp) Method

DecodeUpFilter() private static method

private static DecodeUpFilter ( byte curr, byte prev, int count ) : void
curr byte
prev byte
count int
return void
        private static void DecodeUpFilter(byte[] curr, byte[] prev,
            int count)
        {
            for (int i = 0; i < count; i++) {
                int raw = curr[i] & 0xff;
                int prior = prev[i] & 0xff;

                curr[i] = (byte)(raw + prior);
            }
        }