Bitmap.getPixel(x, y)
returns an int with the colour values and alpha value embedded into it.
int colour = bitmap.getPixel(x, y);
int red = Color.red(colour);
int blue = Color.blue(colour);
int green = Color.green(colour);
int alpha = Color.alpha(colour);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…