org.jfree.chart.encoders
public class SunPNGEncoderAdapter extends Object implements ImageEncoder
| Method Summary | |
|---|---|
| byte[] | encode(BufferedImage bufferedImage)
Encodes an image in PNG format.
|
| void | encode(BufferedImage bufferedImage, OutputStream outputStream)
Encodes an image in PNG format and writes it to an OutputStream.
|
| float | getQuality()
Get the quality of the image encoding (always 0.0).
|
| boolean | isEncodingAlpha()
Get whether the encoder should encode alpha transparency (always false).
|
| void | setEncodingAlpha(boolean encodingAlpha)
Set whether the encoder should encode alpha transparency (not
supported in this ImageEncoder).
|
| void | setQuality(float quality)
Set the quality of the image encoding (not supported in this
ImageEncoder).
|
Parameters: bufferedImage The image to be encoded.
Returns: The byte[] that is the encoded image.
Throws: IOException
Parameters: bufferedImage The image to be encoded. outputStream The OutputStream to write the encoded image to.
Throws: IOException
Returns: A float representing the quality.
Returns: Whether the encoder is encoding alpha transparency.
Parameters: encodingAlpha Whether the encoder should encode alpha transparency.
Parameters: quality A float representing the quality.