를 포함하지 않는, 그래서 나는이를 얻을 수 ImageInfo.java를 사용ImageInfo는 유효한 값
ImageInfo myMapInfo = new ImageInfo();
try {
File testFile = new File(fileNameString);
InputStream myMapStream = new FileInputStream(testFile);
myMapInfo.setInput(myMapStream);
myMapInfo.setDetermineImageNumber(true);
myMapInfo.setCollectComments(true);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
x = myMapInfo.getPhysicalWidthInch();
y = myMapInfo.getPhysicalHeightInch();
을하지만 불행히도 내가 -1 얻을 -1 in (x, y)! 당신이 당신의 myMapInfo
변수의 check()
메소드를 호출 할 필요가 ImageInfo의 소스 코드를 찾고에서 ImageInfo.java
필자는 sanselan jar 라이브러리를 사용 했으므로 ... –