|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jomic.tools.ImageInfo
public class ImageInfo
Information about size and format of an image. During construction, this information is obtained
and later available via various getters. However, if the information cannot be obtained, hasError()
is true
and most getters won't be available. An exception of this is getError()
which returs details about why the image information could not be obtained.
hasError()
,
getError()
Constructor Summary | |
---|---|
ImageInfo(java.io.File newFile)
|
Method Summary | |
---|---|
java.lang.Throwable |
getError()
|
java.io.File |
getFile()
Return the file the image information was obtained from. |
java.lang.String |
getFormat()
Get the name of the format of the image, for example "jpeg". |
int |
getHeight()
Get the height of the image in pixels. |
java.awt.Dimension |
getSize()
Get the size of the image in pixels. |
int |
getWidth()
Get the width of the image in pixels. |
boolean |
hasError()
Return true if the image is definitely broken, in other words either the format
or the size could not be obtained. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageInfo(java.io.File newFile)
Method Detail |
---|
public java.lang.Throwable getError()
public java.io.File getFile()
hasError()
is true
.
public java.lang.String getFormat()
public int getHeight()
public java.awt.Dimension getSize()
public int getWidth()
public boolean hasError()
true
if the image is definitely broken, in other words either the format
or the size could not be obtained.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |