Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Bitmap; import android.graphics.Color; public class Main { public static String getARGBstring(Bitmap bitmap, int x, int y) { return "ARGB at " + x + "," + y + " is \t\tA " + String.format("%03d", Color.alpha(bitmap.getPixel(x, y))) + "\t\tR " + String.format("%03d", Color.red(bitmap.getPixel(x, y))) + "\t\tG " + String.format("%03d", Color.green(bitmap.getPixel(x, y))) + "\t\tB " + String.format("%03d", Color.blue(bitmap.getPixel(x, y))); } }