1、縮放 public Bitmap scalingBitmap(Bitmap bitmap, int newW, int newH) {int w = bitmap.getWidth();int h = bitmap.getHeight();float sx = (float) newW / w;float sy = (float) newH / h;Matrix matrix = new Matrix();matrix.postScale(sx, sy);
时间:2023-11-18 | 阅读:16