将已经加载得到的bitma以一定比例截取图片,newWidth,newHeight是想要得到图片的大小,可以传入屏幕的宽高
public static Bitmap zoomImg(Bitmap bm, int newWidth, int newHeight) { int w = bm.getWidth(); // 得到图片的宽,高
将已经加载得到的bitma以一定比例截取图片,newWidth,newHeight是想要得到图片的大小,可以传入屏幕的宽高
public static Bitmap zoomImg(Bitmap bm, int newWidth, int newHeight) { int w = bm.getWidth(); // 得到图片的宽,高