Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { public static int[][] getImageARGB(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); final int[][] rgbArray = new int[width][height]; for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { rgbArray[i][j] = bitmap.getPixel(i, j); } } return rgbArray; } }