public void compress(String srcPath) {
DisplayMetrics dm;
dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
float hh = dm.heightPixels;
float ww = dm.widthPixels;
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.inJustDecodeBounds = true;
Bitmap bitmap = BitmapFactory.d
压缩文件的Demo,直接拿来用
最新推荐文章于 2024-08-21 22:35:36 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)