ImageWriter
public class PNGImageWriter extends AbstractImageWriter
Constructor | Description |
---|---|
PNGImageWriter() |
Modifier and Type | Method | Description |
---|---|---|
String |
getMIMEType() |
|
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.
|
createMultiImageWriter, isFunctional, supportsMultiImageWriter
public void writeImage(RenderedImage image, OutputStream out) throws IOException
image
- the image to be encodedout
- the OutputStream to write toIOException
- In case of an /IO problempublic void 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 problempublic String getMIMEType()
Copyright © 2018 Apache Software Foundation. All rights reserved.