I\'m looking for the fastest way to get pixel data (int the form int[][]) from a BufferedImage. My goal is to be able to address pixel (x, y) from
int[][]
(x, y)
Something like this?
int[][] pixels = new int[w][h]; for( int i = 0; i < w; i++ ) for( int j = 0; j < h; j++ ) pixels[i][j] = img.getRGB( i, j );