如何获取指定(Jpg)文件的属性(長度和寬度)
------解决方案--------------------
- Java code
BufferedImage bi = ImageIO.read(new File("a.jpg");//BufferedImage的高度bi.getHeight();bi.getWidth()//下面是以像素为单位bi.getTileHeight();bi.getTileWidth()
------解决方案--------------------
BufferedImage bi = ImageIO.read(new File("a.jpg");//BufferedImage的高度bi.getHeight();bi.getWidth()//下面是以像素为单位bi.getTileHeight();bi.getTileWidth()
------解决方案--------------------