根据坐标采色修改背景

来源:互联网 发布:seo怎么做优化 编辑:程序博客网 时间:2024/05/31 19:00
//根据坐标获取
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);
0 0
原创粉丝点击