public Bitmap getNewBitmap(Bitmap bitmap, int newWidth ,int newHeight){ // 获得图片的宽高. int width = bitmap.getWidth(); int height = bitmap.getHeight(); // 计算缩放比例. float scaleWidth = ((float) newWidth) / width; float scaleHeight = ((f
Android中通过代码修改bitmap的宽高
最新推荐文章于 2023-11-30 23:37:31 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)