int weight = picture.getWidth(); int height = picture.getHeight(); if (weight > 0 && height > 0){ Bitmap bitmap = Bitmap.createBitmap(weight, height, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); picture.draw(canvas); mImageView.setImageBitmap(bitmap); }
也可以任意的對bitmap作影像處裡達到需要的效果
Thanks, have a good day!
回覆刪除mehndi designs simple back hand