Exemple #1
0
        internal virtual byte[][] returnrawpixels()
        {
            int w = this.rawpixels.Length / this.imgheight;

            //JAVA TO C# CONVERTER NOTE: The following call to the 'RectangularArrays' helper class reproduces the rectangular array initialization that is automatic in Java:
            //ORIGINAL LINE: byte[][] frame = new byte[this.imgheight][this.imgwidth];
            byte[][] frame = RectangularArrays.RectangularbyteArray(this.imgheight, this.imgwidth);
            for (int i = 0; i < this.imgheight; i++)
            {
                for (int j = 0; j < this.imgwidth; j++)
                {
                    frame[this.imgheight - i - 1][j] = this.rawpixels[i * w + j];
                }
            }
            return(frame);
        }