All Packages Class Hierarchy This Package Previous Next Index
Class fi.faidon.jis.BMPImageSaver
java.lang.Object
|
+----fi.faidon.jis.ImageSaverInterface
|
+----fi.faidon.jis.BMPImageSaver
- public class BMPImageSaver
- extends ImageSaverInterface
- implements Serializable, ImageConsumer
Class for saving an image in the Windows/OS2 Bitmap format.
For the moment, we just use an uncompressed, direct 24 bit format.
-
FORMAT_CODE
-
-
FORMAT_COMPLETE_NAME
-
-
FORMAT_EXTENSION
-
-
BMPImageSaver()
-
-
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.
-
saveIt()
- Save the image.
-
setColorModel(ColorModel)
-
-
setDimensions(int, int)
-
-
setHints(int)
-
-
setPixels(int, int, int, int, ColorModel, byte[], int, int)
- Write the pixels into the file as RGB data.
-
setPixels(int, int, int, int, ColorModel, int[], int, int)
- Write the pixels into the file as RGB data.
-
setProperties(Hashtable)
- ImageConsumer method implementations.
FORMAT_CODE
public static final String FORMAT_CODE
FORMAT_COMPLETE_NAME
public static final String FORMAT_COMPLETE_NAME
FORMAT_EXTENSION
public static final String FORMAT_EXTENSION
BMPImageSaver
public BMPImageSaver()
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)
setPixels
public void setPixels(int x,
int y,
int w,
int h,
ColorModel model,
byte pixels[],
int off,
int scansize)
- Write the pixels into the file as RGB data. For this to work correctly,
pixels should be delivered in topdownleftright order with complete
scanlines. If we have several lines, the lines should be complete scanlines,
otherwise the saving fails.
- See Also:
-
setPixels
public void setPixels(int x,
int y,
int w,
int h,
ColorModel model,
int pixels[],
int off,
int scansize)
- Write the pixels into the file as RGB data.
- 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