Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        internal virtual int[][] imageToIntArray(QRCodeImage image)
        {
            int width  = image.Width;
            int height = image.Height;

            int[][] array = new int[width][];
            for (int i = 0; i < width; i++)
            {
                array[i] = new int[height];
            }
            for (int j = 0; j < height; j++)
            {
                for (int k = 0; k < width; k++)
                {
                    array[k][j] = image.getPixel(k, j);
                }
            }
            return(array);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
 internal virtual int[][] imageToIntArray(QRCodeImage image)
 {
     int width = image.Width;
     int height = image.Height;
     int[][] numArray = new int[width][];
     for (int i = 0; i < width; i++)
     {
         numArray[i] = new int[height];
     }
     for (int j = 0; j < height; j++)
     {
         for (int k = 0; k < width; k++)
         {
             numArray[k][j] = image.getPixel(k, j);
         }
     }
     return numArray;
 }