Android Bitmap 变灰返回Bitmap 方法
public Bitmap getGrayscaleBitmap(Bitmap bitmap){
int width, height;
height = bitmap.getHeight();
width = bitmap.getWidth();
Bitmap bmpGrayscale = Bitmap.createBitmap(width, height, Config.ARGB_8888);
Canvas c = new Canvas(bmpGrayscale);
Paint paint = new
原创
2020-07-07 08:34:37 ·
343 阅读 ·
0 评论