摘要:
本文用来记录一些android 操作图片的方法,方便查看。1.将Drawable转化为Bitmap 1 public static Bitmap drawableToBitmap(Drawable drawable){ 2 int width = drawable.getIntrinsicWidth(); 3 int height = drawable.getIntrinsicHeight(); 4 Bitmap bitmap = Bitmap.createBitmap(width, height, 5 drawable.getOpacity() != PixelFormat.OPAQ... 阅读全文