|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImageEncoder
Represents an image encoder used to encode an AWT image into a particular format, such as PNG.
ImageEncoders.newInstance(java.lang.String)
,
ImageEncoders.setEncoderClass(java.lang.String, java.lang.Class)
Method Summary | |
---|---|
byte[] |
encode(java.awt.image.RenderedImage image)
Encodes an AWT image into a byte array in a particular format. |
float |
getQuality()
Return the quality of the image encoding. |
boolean |
isEncodingAlpha()
Returns whether to encode the alpha transparency. |
void |
setEncodingAlpha(boolean encodeAlpha)
Sets whether to encode the alpha transparency. |
void |
setQuality(float quality)
Sets the quality of the image encoding. |
Method Detail |
---|
byte[] encode(java.awt.image.RenderedImage image) throws java.io.IOException
java.io.IOException
float getQuality()
void setQuality(float quality)
boolean isEncodingAlpha()
void setEncodingAlpha(boolean encodeAlpha)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |