public abstract class ImageEncoderImpl extends Object implements ImageEncoder
This class is not a committed part of the JAI API. It may be removed or changed in future releases of JAI.
限定符和类型 | 字段和说明 |
---|---|
protected OutputStream |
output
The OutputStream associcted with this ImageEncoder.
|
protected ImageEncodeParam |
param
The ImageEncodeParam object associcted with this ImageEncoder.
|
构造器和说明 |
---|
ImageEncoderImpl(OutputStream output,
ImageEncodeParam param)
Constructs an ImageEncoderImpl with a given OutputStream
and ImageEncoderParam instance.
|
限定符和类型 | 方法和说明 |
---|---|
void |
encode(Raster ras,
ColorModel cm)
Encodes a Raster with a given ColorModel and writes the output
to the OutputStream associated with this ImageEncoder.
|
abstract 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.
|
protected OutputStream output
protected ImageEncodeParam param
public ImageEncoderImpl(OutputStream output, ImageEncodeParam param)
public ImageEncodeParam getParam()
getParam
在接口中 ImageEncoder
public void setParam(ImageEncodeParam param)
setParam
在接口中 ImageEncoder
public OutputStream getOutputStream()
getOutputStream
在接口中 ImageEncoder
public void encode(Raster ras, ColorModel cm) throws IOException
encode
在接口中 ImageEncoder
IOException
public abstract void encode(RenderedImage im) throws IOException
encode
在接口中 ImageEncoder
IOException
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.