public Image Iterate(byte[] next)
            {
                Decompress(next);
                cur = (Bitmap)ImageExtensions.ImageFromRawBgraArray(decompressionBuffer, screenBounds.Width, screenBounds.Height, PixelFormat.Format32bppArgb);
                //cur = DifferenceToBitmap(prev, cur, true);
                cur = ApplyXorToBitmap(prev, cur);

                var tmp = cur;

                cur  = prev;
                prev = tmp;

                return(prev);
            }
Exemplo n.º 2
0
        public Image Iterate(byte[] next)
        {
            backbuf = next;

            Decompress();

            cur = (Bitmap)ImageExtensions.ImageFromRawBgraArray(decompressionBuffer, screenBounds.Width, screenBounds.Height, PixelFormat.Format32bppArgb);

            cur = Difference(prev, cur, true);

            var tmp = cur;

            cur  = prev;
            prev = tmp;

            Bitmap ret = prev;

            return(ret);
        }