2 回答
已采纳

iMcLaren
TA贡献34条经验 获得超7个赞
private Bitmap compressBitmap(Bitmap bitmap){ OutputStream os = new OutputStream(); image.compress(Bitmap.CompressFormat.JPEG, 100, os);// 第二个数据是压缩的百分比吧,100是原图吧。 Bitmap bReturn = Bitmap.createBitmap(bitmap,0,0,bitmap.getWidth(),bitmap.getHeight()); return bReturn; } /* 只会这种,更高效完善的压缩算法应该要学图像处理处理像素点吧。。 */
- 2 回答
- 0 关注
- 1404 浏览
添加回答
举报
0/150
提交
取消