摘要: 本文用来记录一些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... 阅读全文
posted @ 2011-12-19 21:59 杰迪-android 阅读(879) 评论(0) 推荐(0) 编辑