public final class ImageInfo
extends java.lang.Object
Constructor and Description |
---|
ImageInfo() |
Modifier and Type | Method and Description |
---|---|
static int[] |
getImageDimensions(java.lang.String imageFilename)
Summary: Rapidly calculate image size without loading the image.
|
static void |
main(java.lang.String[] args)
Test driver to find size of an image mentioned on the command line.
|
public static int[] getImageDimensions(java.lang.String imageFilename)
imageFilename
- filename. Must end in .jpg or .gifpublic static void main(java.lang.String[] args)
args
- name of a *.gif or *.jpg or *.png image file to test. Should print out its width and height.