有没有什么类可以读取出图片的大小尺寸 please use image.getWidth and image.getHeight() directly! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我要得到的图片大小的情况是这样的,首先从服务器端读出图片文件,然后得到图片的大小,只用Image类是不够的 ImageIcon ii = new ImageIcon("C:/file.gif");ii.getHeight();ii.getWidth(); File iFile = readFromServer();//..ImageIcon aImage = new ImageIcon(iFile.getPath());int height = aImage.getHeight();int width = aImage.getWidth(); 金额计算问题 《算法导论的Java实现》 1_1.1 插入排序 请教:类的继承和合成 学习共享 短信二次开发包 JAVA接口程序 如何给TextField 添加滚动条 2个short类型的数据相加不能是short型了? java动态代理类加载器 作用 限制 要求 正则表达式的替换问题 为什么相同的代码在两个环境下结果却不一样? 请问如何像c++那样实现数值传递 100分与您共畅谈:你跳槽了吗? JBuilder编的Applet为何不能在IE中正确使用?
ii.getHeight();
ii.getWidth();
ImageIcon aImage = new ImageIcon(iFile.getPath());
int height = aImage.getHeight();
int width = aImage.getWidth();