根据x,y,width,height参数图片拆分
拆分图片工具类1.获取坐标,拆分图片2.图片类型转换(png转jpg)3.测试jpg类型图片剪切4.结果展示5.注意点
1.获取坐标,拆分图片
/**
* 裁剪,图片保存
*
* @return
*/
public InputStream cut(int x, int y, int width, int height, MultipartFile srcpath) throws IOException {
InputStream is = null;
//InputStream
原创
2020-07-20 16:08:13 ·
666 阅读 ·
0 评论