public class PNGImageWriter extends AbstractImageWriter
构造器和说明 |
---|
PNGImageWriter() |
限定符和类型 | 方法和说明 |
---|---|
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 1999-2016 The Apache Software Foundation. All Rights Reserved.