摘要:
1 ImageView iv = new ImageView(this); 2 setContentView(iv); 3 Bitmap originImg = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher); 4 Bitmap grayImg = Bitmap.createBitmap(originImg.getWidth(), originImg.getHeight(), Bitmap.Config.ARGB_8888); 5 Canvas canvas = new Canvas(grayImg);.
阅读全文