|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jfree.chart.encoders.KeypointPNGEncoderAdapter
public class KeypointPNGEncoderAdapter
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.
Constructor Summary | |
---|---|
KeypointPNGEncoderAdapter()
|
Method Summary | |
---|---|
byte[] |
encode(java.awt.image.BufferedImage bufferedImage)
Encodes an image in PNG format. |
void |
encode(java.awt.image.BufferedImage bufferedImage,
java.io.OutputStream outputStream)
Encodes an image in PNG format and writes it to an OutputStream . |
float |
getQuality()
Get the quality of the image encoding. |
boolean |
isEncodingAlpha()
Get whether the encoder should encode alpha transparency. |
void |
setEncodingAlpha(boolean encodingAlpha)
Set whether the encoder should encode alpha transparency (supported). |
void |
setQuality(float quality)
Set the quality of the image encoding (supported). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeypointPNGEncoderAdapter()
Method Detail |
---|
public float getQuality()
getQuality
in interface ImageEncoder
public void setQuality(float quality)
setQuality
in interface ImageEncoder
quality
- A float representing the quality.public boolean isEncodingAlpha()
isEncodingAlpha
in interface ImageEncoder
public void setEncodingAlpha(boolean encodingAlpha)
setEncodingAlpha
in interface ImageEncoder
encodingAlpha
- Whether the encoder should encode alpha
transparency.public byte[] encode(java.awt.image.BufferedImage bufferedImage) throws java.io.IOException
encode
in interface ImageEncoder
bufferedImage
- The image to be encoded.
java.io.IOException
public void encode(java.awt.image.BufferedImage bufferedImage, java.io.OutputStream outputStream) throws java.io.IOException
OutputStream
.
encode
in interface ImageEncoder
bufferedImage
- The image to be encoded.outputStream
- The OutputStream to write the encoded image to.
java.io.IOException
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |