All,
I am trying to write a quick program that will check the dimensions of a tiff file. I have a quick program (picked up from elsewhere on the Internet) however, I am unable to use this with tiff files.
CODE
import javax.swing.*;
import java.awt.*;
public class JRenderImage{
public static void main(String args[]) {
Image img = new ImageIcon("te.tiff").getImage();
System.out.println(img.getWidth(null) + " x " + img.getHeight(null));
}
}
I have looked into using JAI (java advanced imaging), but I can't seem to import any of the packages that I need. Any help would be appreciated.
Steve
edit: I should have been more clear. I am looking for the dimensions in Pixels or Inches or whatever of the image itself.THX
This post has been edited by joneSi: 28 Aug, 2008 - 07:44 AM