|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jomic.comic.ComicImage
public class ComicImage
Image for one comic page.
The actual image data are not kept in memory, but can be obtained in demand using getImage()
.
Constructor Summary | |
---|---|
ComicImage(java.io.File newFile)
Creates a new comic image from newFile . |
Method Summary | |
---|---|
java.lang.Throwable |
getError()
Get the error that occured during getting the size or reading the image. |
java.io.File |
getFile()
Get the file from which the image was read. |
int |
getHeight()
Get the height of the image in pixels. |
java.awt.image.RenderedImage |
getImage()
Get image for current page, read from file in cache. |
java.lang.String |
getName()
Original name of the image as used in the archive (for example "page_17.jpg"). |
int |
getWidth()
Get the width of the image in pixels. |
boolean |
hasError()
Did an error occur during getting the size or reading the image? |
boolean |
isDoublePage()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComicImage(java.io.File newFile)
newFile
.
newFile
- file that contains the image in any format supported by ImageIO.Method Detail |
---|
public java.lang.Throwable getError()
public java.io.File getFile()
public int getHeight()
public java.awt.image.RenderedImage getImage()
public java.lang.String getName()
public int getWidth()
public boolean isDoublePage()
public boolean hasError()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |