import javax.swing.ImageIcon;
String path = getImagePath(request);
ImageIcon icon=new ImageIcon( request.getRealPath("/images/"+path));
int iWidth=icon.getIconWidth();
int iHeight=icon.getIconHeight();
}
java获取图片的宽度高度
最新推荐文章于 2023-04-01 10:10:42 发布