标签:rac cto mod java bitmap null inpu file 压缩
BufferedInputStream in = new BufferedInputStream( new FileInputStream(new File(path))); BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = false; options.inSampleSize = 2;//宽和高变为原来的1/2,即图片压缩为原来的1/4 Bitmap bitmap = BitmapFactory.decodeStream(in, null, options);
Android学习之利用BitmapFactory工厂压缩图片
标签:rac cto mod java bitmap null inpu file 压缩
原文地址:http://www.cnblogs.com/clnchanpin/p/7131677.html