| java.lang.Object org.jfree.chart.encoders.KeypointPNGEncoderAdapter
KeypointPNGEncoderAdapter | public class KeypointPNGEncoderAdapter implements ImageEncoder(Code) | | Adapter class for the Keypoint PNG Encoder. The ImageEncoderFactory will
only return a reference to this class by default if the library has been
compiled under a JDK < 1.4 or is being run using a JDK < 1.4.
|
Method Summary | |
public byte[] | encode(BufferedImage bufferedImage) Encodes an image in PNG format.
Parameters: bufferedImage - The image to be encoded. | public void | encode(BufferedImage bufferedImage, OutputStream outputStream) Encodes an image in PNG format and writes it to an
OutputStream . | public float | getQuality() Get the quality of the image encoding. | public boolean | isEncodingAlpha() Get whether the encoder should encode alpha transparency. | public void | setEncodingAlpha(boolean encodingAlpha) Set whether the encoder should encode alpha transparency (supported). | public void | setQuality(float quality) Set the quality of the image encoding (supported). |
encode | public byte[] encode(BufferedImage bufferedImage) throws IOException(Code) | | Encodes an image in PNG format.
Parameters: bufferedImage - The image to be encoded. The byte[] that is the encoded image. throws: IOException - |
encode | public void encode(BufferedImage bufferedImage, OutputStream outputStream) throws IOException(Code) | | Encodes an image in PNG format and writes it to an
OutputStream .
Parameters: bufferedImage - The image to be encoded. Parameters: outputStream - The OutputStream to write the encoded image to. throws: IOException - |
getQuality | public float getQuality()(Code) | | Get the quality of the image encoding. The underlying encoder uses int
values: 0 for no compression, and values 1 through 9 for various levels
of compression (1 is best speed, 9 is best compression).
A float representing the quality. |
isEncodingAlpha | public boolean isEncodingAlpha()(Code) | | Get whether the encoder should encode alpha transparency.
Whether the encoder is encoding alpha transparency. |
setEncodingAlpha | public void setEncodingAlpha(boolean encodingAlpha)(Code) | | Set whether the encoder should encode alpha transparency (supported).
Parameters: encodingAlpha - Whether the encoder should encode alpha transparency. |
setQuality | public void setQuality(float quality)(Code) | | Set the quality of the image encoding (supported). The underlying
encoder uses int values: 0 for no compression, and values 1 through 9
for various levels of compression (1 is best speed, 9 is best
compression).
Parameters: quality - A float representing the quality. |
|
|