| java.lang.Object org.apache.xmlgraphics.image.codec.util.ImageEncoderImpl org.apache.xmlgraphics.image.codec.tiff.TIFFImageEncoder
TIFFImageEncoder | public class TIFFImageEncoder extends ImageEncoderImpl (Code) | | A baseline TIFF writer. The writer outputs TIFF images in either Bilevel,
Greyscale, Palette color or Full Color modes.
|
Method Summary | |
public void | encode(RenderedImage im) Encodes a RenderedImage and writes the output to the
OutputStream associated with this ImageEncoder. | public Object | encodeMultiple(Object context, RenderedImage img) Encodes a RenderedImage as part of a multi-page file and writes the output to the
OutputStream associated with this ImageEncoder.
When you sent all pages, make sure you call finishMultiple() in the end. | public void | finishMultiple(Object context) Signals the encoder that you've finished sending pages for a multi-page image files. |
encode | public void encode(RenderedImage im) throws IOException(Code) | | Encodes a RenderedImage and writes the output to the
OutputStream associated with this ImageEncoder.
|
encodeMultiple | public Object encodeMultiple(Object context, RenderedImage img) throws IOException(Code) | | Encodes a RenderedImage as part of a multi-page file and writes the output to the
OutputStream associated with this ImageEncoder.
When you sent all pages, make sure you call finishMultiple() in the end. Otherwise,
the generated file will be corrupted.
Parameters: context - the context object you receive as return value to a previous call toencodeMultiple(). Set null for the first image. Parameters: img - the image a context object needed for writing multiple pages for a single image file throws: IOException - In case of an I/O error |
finishMultiple | public void finishMultiple(Object context) throws IOException(Code) | | Signals the encoder that you've finished sending pages for a multi-page image files.
Parameters: context - the context object you receive as return value to a previous call toencodeMultiple() throws: IOException - In case of an I/O error |
|
|