public static int[][][] getRGBL(BufferedImage in){
		int width = in.getWidth();
		int height = in.getHeight();
		
		int[][][] rgbl = new int[4][height][width];
		
		try {

			
			int[] data = new int[width * height];
			
			
			in.getRGB(0, 0, width, height, data, 0, width);

			for (int i = 0; i < height; i++) {
				for (int j = 0; j < width; j++) {
					rgbl[0][i][j] = ((data[i*height + j] >> 16) & 0xff);
					rgbl[1][i][j] = ((data[i*height + j] >> 8) & 0xff);
					rgbl[2][i][j] = (data[i*height + j] & 0xff);
					rgbl[3][i][j] = (data[i*height + j] >> 24) & 0xFF;
				}
			}


		} catch (Exception e) {
			System.err.println("Error: " + e);
		}
		
		return rgbl;
		
	}