ImageEncoderImpl
, PNGImageEncoder
, TIFFImageEncoder
public interface ImageEncoder
This interface is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
Modifier and Type | Method | Description |
---|---|---|
void |
encode(Raster ras,
ColorModel cm) |
Encodes a Raster with a given ColorModel and writes the output
to the OutputStream associated with this ImageEncoder.
|
void |
encode(RenderedImage im) |
Encodes a RenderedImage and writes the output to the
OutputStream associated with this ImageEncoder.
|
OutputStream |
getOutputStream() |
Returns the OutputStream associated with this ImageEncoder.
|
ImageEncodeParam |
getParam() |
Returns the current parameters as an instance of the
ImageEncodeParam interface.
|
void |
setParam(ImageEncodeParam param) |
Sets the current parameters to an instance of the
ImageEncodeParam interface.
|
ImageEncodeParam getParam()
void setParam(ImageEncodeParam param)
OutputStream getOutputStream()
void encode(Raster ras, ColorModel cm) throws IOException
IOException
void encode(RenderedImage im) throws IOException
IOException
Copyright © 2018 Apache Software Foundation. All rights reserved.