|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--fi.faidon.jis.ImageSaverInterface
|
+--fi.faidon.jis.TargaImageSaver
Class for saving an Image object to file using the TrueVision Targa format. Only 24-bit uncompressed format supported.
| Field Summary | |
static java.lang.String |
FORMAT_CODE
|
static java.lang.String |
FORMAT_COMPLETE_NAME
|
static java.lang.String |
FORMAT_EXTENSION
|
| Fields inherited from class fi.faidon.jis.ImageSaverInterface |
saveImage, savePath |
| Fields inherited from interface java.awt.image.ImageConsumer |
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
| Constructor Summary | |
TargaImageSaver()
|
|
| Method Summary | |
int |
checkSave()
Return ImageObserver constants for indicating the state of the image saving. |
java.lang.String |
getFormatCode()
ImageSaverInterface method implementations. |
java.lang.String |
getFormatExtension()
|
java.lang.String |
getFormatString()
|
void |
imageComplete(int status)
Get imageComplete message so that we can close the output file. |
static void |
main(java.lang.String[] argv)
Main for testing this class. |
boolean |
saveIt()
Save the image. |
void |
setColorModel(java.awt.image.ColorModel model)
|
void |
setDimensions(int w,
int h)
Override the source image's dimensions and pass the dimensions of the rectangular cropped region to the ImageConsumer. |
void |
setHints(int hintflags)
|
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
byte[] pixels,
int off,
int scansize)
Override the source image's setPixels method so that we can replace all non-transparent pixels with the given fill color or pattern. |
void |
setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int off,
int scansize)
Override the source image's setPixels method so that we can replace all non-transparent pixels with the given fill color or pattern. |
void |
setProperties(java.util.Hashtable props)
ImageConsumer method implementations. |
| Methods inherited from class fi.faidon.jis.ImageSaverInterface |
getSaveImage, getSavePath, setSaveImage, setSavePath |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String FORMAT_CODE
public static java.lang.String FORMAT_COMPLETE_NAME
public static java.lang.String FORMAT_EXTENSION
| Constructor Detail |
public TargaImageSaver()
| Method Detail |
public static void main(java.lang.String[] argv)
public java.lang.String getFormatCode()
getFormatCode in class ImageSaverInterfacepublic java.lang.String getFormatString()
getFormatString in class ImageSaverInterfacepublic java.lang.String getFormatExtension()
getFormatExtension in class ImageSaverInterfacepublic boolean saveIt()
saveIt in class ImageSaverInterfacepublic int checkSave()
checkSave in class ImageSaverInterfacepublic void setProperties(java.util.Hashtable props)
setProperties in interface java.awt.image.ImageConsumerpublic void setHints(int hintflags)
setHints in interface java.awt.image.ImageConsumerpublic void setColorModel(java.awt.image.ColorModel model)
setColorModel in interface java.awt.image.ImageConsumer
public void setDimensions(int w,
int h)
setDimensions in interface java.awt.image.ImageConsumerImageConsumer.
public void setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
byte[] pixels,
int off,
int scansize)
setPixels in interface java.awt.image.ImageConsumerImageConsumer.
public void setPixels(int x,
int y,
int w,
int h,
java.awt.image.ColorModel model,
int[] pixels,
int off,
int scansize)
setPixels in interface java.awt.image.ImageConsumerImageConsumer.public void imageComplete(int status)
imageComplete in interface java.awt.image.ImageConsumerImageConsumer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||