//根据坐标获取 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);

相关文章:

  • 2022-12-23
  • 2021-06-08
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
  • 2022-12-23
  • 2022-01-13
相关资源
相似解决方案