|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.utils.gui.TargaReader
Reads Targa (.tga) image files and creates Java Image objects from them. Only applies to uncompressed 24 or 32 bit files.
Constructor Summary | |
TargaReader(File tgaFile)
Reads the given targa file and stores the resulting image. |
|
TargaReader(String tgaFilename)
Reads the given targa file and stores the resulting image. |
Method Summary | |
Image |
getImage()
Creates and reports the image as an Image object. |
Dimension |
getSize()
Reports the size of the image. |
Image |
getThumbnail(int maxSize,
boolean doSmoothing)
Creates an image with the given maximum dimension. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TargaReader(String tgaFilename)
tgaFilename
- Name of targa file to read.public TargaReader(File tgaFile)
tgaFile
- Targa file to read.Method Detail |
public Image getImage()
public Image getThumbnail(int maxSize, boolean doSmoothing)
maxSize
- Maximum dimension of the image.doSmoothing
- Image will be smoothed if true and image needs to be resampled.public Dimension getSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |