info.evccit.utils
Class ImageFileDimensions

java.lang.Object
  extended byinfo.evccit.utils.ImageFileDimensions

public class ImageFileDimensions
extends java.lang.Object


Constructor Summary
ImageFileDimensions()
           
 
Method Summary
static java.awt.Dimension getFileDimensions(java.lang.String fileName)
          Retrieve dimensions of a file containing a PNG, JPG, or GIF image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFileDimensions

public ImageFileDimensions()
Method Detail

getFileDimensions

public static java.awt.Dimension getFileDimensions(java.lang.String fileName)
Retrieve dimensions of a file containing a PNG, JPG, or GIF image. If the file is not found, cannot be read, or is badly formed, return a width and height of zero.

Parameters:
fileName - A String giving the complete file name (plus path)
Returns:
A Dimension object giving the image's width and height