|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.common11.ImageInfo
public final class ImageInfo
Rapidly determine the gif or jpg or png image width and height without loading the image.
Constructor Summary | |
---|---|
ImageInfo()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageInfo()
Method Detail |
---|
public static int[] getImageDimensions(java.lang.String imageFilename)
imageFilename
- filename. Must end in .jpg or .gif
public 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |