public interface ImageWriter
限定符和类型 | 方法和说明 |
---|---|
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 1999-2016 The Apache Software Foundation. All Rights Reserved.