BufferedImage image = ImageIO.read(xxxx);
int width = image.getWidth();
int height = image.getHeight();通过上面的代码可以获取图片的大小,但如果图片很大(大概6000x6000)的话,执行的时间需要达到2秒,有没有效率高一点的方法?
int width = image.getWidth();
int height = image.getHeight();通过上面的代码可以获取图片的大小,但如果图片很大(大概6000x6000)的话,执行的时间需要达到2秒,有没有效率高一点的方法?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货