public interface ImageWriter
Modifier and Type | Method and Description |
---|---|
MultiImageWriter |
createMultiImageWriter(OutputStream out)
Creates a MultiImageWriter instance that lets you put multiple pages into a single file
if the format supports it.
|
String |
getMIMEType() |
boolean |
isFunctional() |
boolean |
supportsMultiImageWriter() |
void |
writeImage(RenderedImage image,
OutputStream out)
Encodes an image and writes it to an OutputStream.
|
void |
writeImage(RenderedImage image,
OutputStream out,
ImageWriterParams params)
Encodes an image and writes it to an OutputStream.
|
void writeImage(RenderedImage image, OutputStream out) throws IOException
image
- the image to be encodedout
- the OutputStream to write toIOException
- In case of an /IO problemvoid writeImage(RenderedImage image, OutputStream out, ImageWriterParams params) throws IOException
image
- the image to be encodedout
- the OutputStream to write toparams
- a parameters object to customize the encoding.IOException
- In case of an /IO problemString getMIMEType()
boolean isFunctional()
boolean supportsMultiImageWriter()
MultiImageWriter createMultiImageWriter(OutputStream out) throws IOException
out
- the OutputStream to write the image toIOException
- In case of an /IO problemCopyright © 2023 Apache Software Foundation. All rights reserved.