android获取View上某点的颜色

//根据坐标获取 ImageView imageView = ((ImageView)v);

Bitmap bitmap = ((BitmapDrawable)imageView.getDrawable()).getBitmap();

int pixel = bitmap.getPixel(x,y);

//获取颜色 int redValue = Color.red(pixel);

int blueValue = Color.blue(pixel);

int greenValue = Color.green(pixel);

原文地址:https://www.cnblogs.com/Free-Thinker/p/4670487.html