All Packages Class Hierarchy This Package Previous Next Index
Class fi.faidon.jis.TargaImageSaver
java.lang.Object
|
+----fi.faidon.jis.ImageSaverInterface
|
+----fi.faidon.jis.TargaImageSaver
- public class TargaImageSaver
- extends ImageSaverInterface
- implements Serializable, ImageConsumer.
Class for saving an Image object to file using the TrueVision Targa
format. Only 24-bit uncompressed format supported.
-
FORMAT_CODE
-
-
FORMAT_COMPLETE_NAME
-
-
FORMAT_EXTENSION
-
-
TargaImageSaver()
-
-
checkSave()
- Return ImageObserver constants for indicating the state of the image saving.
-
getFormatCode()
- ImageSaverInterface method implementations.
-
getFormatExtension()
-
-
getFormatString()
-
-
imageComplete(int)
- Get imageComplete message so that we can close the output file.
-
main(String[])
- Main for testing this class.
-
saveIt()
- Save the image.
-
setColorModel(ColorModel)
-
-
setDimensions(int, int)
- Override the source image's dimensions and pass the dimensions
of the rectangular cropped region to the ImageConsumer.
-
setHints(int)
-
-
setPixels(int, int, int, int, ColorModel, byte[], int, int)
- Override the source image's setPixels method so that we can replace all
non-transparent pixels with the given fill color or pattern.
-
setPixels(int, int, int, int, ColorModel, int[], int, int)
- Override the source image's setPixels method so that we can replace all
non-transparent pixels with the given fill color or pattern.
-
setProperties(Hashtable)
- ImageConsumer method implementations.
FORMAT_CODE
public static String FORMAT_CODE
FORMAT_COMPLETE_NAME
public static String FORMAT_COMPLETE_NAME
FORMAT_EXTENSION
public static String FORMAT_EXTENSION
TargaImageSaver
public TargaImageSaver()
main
public static void main(String argv[])
- Main for testing this class.
getFormatCode
public String getFormatCode()
- ImageSaverInterface method implementations.
- Overrides:
- getFormatCode in class ImageSaverInterface
getFormatString
public String getFormatString()
- Overrides:
- getFormatString in class ImageSaverInterface
getFormatExtension
public String getFormatExtension()
- Overrides:
- getFormatExtension in class ImageSaverInterface
saveIt
public boolean saveIt()
- Save the image.
- Overrides:
- saveIt in class ImageSaverInterface
checkSave
public int checkSave()
- Return ImageObserver constants for indicating the state of the image saving.
- Overrides:
- checkSave in class ImageSaverInterface
setProperties
public void setProperties(Hashtable props)
- ImageConsumer method implementations.
setHints
public void setHints(int hintflags)
setColorModel
public void setColorModel(ColorModel model)
setDimensions
public void setDimensions(int w,
int h)
- Override the source image's dimensions and pass the dimensions
of the rectangular cropped region to the ImageConsumer.
- See Also:
-
setPixels
public void setPixels(int x,
int y,
int w,
int h,
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. All transparent
pixels are replaced by the background color.
- See Also:
-
setPixels
public void setPixels(int x,
int y,
int w,
int h,
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. All transparent
pixels are replaced by the background color.
- See Also:
-
imageComplete
public void imageComplete(int status)
- Get imageComplete message so that we can close the output file.
- See Also:
-
All Packages Class Hierarchy This Package Previous Next Index