1 /** 2 * 裁剪圖片 3 * @param src 源圖片 4 * @param dest 裁剪后的圖片 5 * @param x 裁剪范圍的X坐標(biāo) 6 * @param y 裁剪范圍的Y坐標(biāo) 7 * @param w 裁剪范圍的高度 8 * @param h 裁剪范圍的寬度 9 * @param destW 裁剪后圖片的寬度10 * @param destH 裁剪后圖片的高度11 * @throws IOException12 */13 public static void cutImage(String src, String dest, int x, int y, int w,14 int h,int destW,int destH) throws IOException {15 try{16 17 //未知問(wèn)題,不知道為啥路徑的最后會(huì)有/r/n18 19 src = src.replace("/r/n", "");20 dest = dest.replace("/r/n", "");21 System.out.cutImage
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注