1,获取本地图片大小(尺寸)
File picture=new File(strSrc);
BufferedImage sourceImg=ImageIO.read(new
FileInputStream(picture));
sourceImg.getWidth();
sourceImg.getHeight();
2,获取网络图片大小(尺寸)
BufferedImage sourceImg=ImageIO.read(new URL(strSrc).openStream());
sourceImg.getWidth();
sourceImg.getHeight();
-------------------------------------------------
java 获取图片大小(尺寸),布布扣,bubuko.com
原文地址:http://www.cnblogs.com/jackicalSong/p/3754790.html