代码拉取完成,页面将自动刷新
JDK版本: 14
hutool版本: 5.4.1
Rectangle 设置:
int left = 118; int top = 174; int width = 250; int height = 326; Rectangle rectangle = new Rectangle(left,top,width,height);
原图:
使用 Img.from(f).cut(rectangle).write(out); 效果如下,是错误的
使用 ImgUtil.cut(new FileInputStream(f),out,rectangle); 则会出现正确结果