예제 #1
0
        internal virtual int[][] imageToIntArray(QRCodeImage image)
        {
            int width  = image.Width;
            int height = image.Height;

            int[][] intImage = new int[width][];
            for (int i = 0; i < width; i++)
            {
                intImage[i] = new int[height];
            }
            for (int y = 0; y < height; y++)
            {
                for (int x = 0; x < width; x++)
                {
                    intImage[x][y] = image.GetPixel(x, y);
                }
            }
            return(intImage);
        }
예제 #2
0
        internal virtual int[][] imageToIntArray(QRCodeImage image)
        {
            int width  = image.Width;
            int height = image.Height;

            int[][] numArray = new int[width][];
            for (int index = 0; index < width; ++index)
            {
                numArray[index] = new int[height];
            }
            for (int y = 0; y < height; ++y)
            {
                for (int x = 0; x < width; ++x)
                {
                    numArray[x][y] = image.GetPixel(x, y);
                }
            }
            return(numArray);
        }