com.arsdigita.acs
Class ImageSize
java.lang.Object
|
+--com.arsdigita.acs.ImageSize
- public class ImageSize
- extends java.lang.Object
Utility class for getting the width and height of images for uploaded
files. This code was derived from AOLServer 3.0, tclmisc.c. The
terms of the GNU Public License apply.
|
Constructor Summary |
ImageSize(java.io.File file)
|
ImageSize(java.io.File file,
java.lang.String mimeType)
|
ImageSize(java.lang.String fileName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageSize
public ImageSize(java.io.File file)
throws java.io.IOException
ImageSize
public ImageSize(java.io.File file,
java.lang.String mimeType)
throws java.io.IOException
ImageSize
public ImageSize(java.lang.String fileName)
throws java.io.IOException
initGif
public void initGif(java.io.File f)
throws java.io.IOException
getWidth
public int getWidth()
getHeight
public int getHeight()
main
public static void main(java.lang.String[] args)
throws java.lang.Exception