Method Summary |
|
public byte[] | encode(BufferedImage bufferedImage) Encodes an image in a particular format.
Parameters: bufferedImage - The image to be encoded. |
public void | encode(BufferedImage bufferedImage, OutputStream outputStream) Encodes an image in a particular 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 (not
supported by all ImageEncoders). |
public void | setQuality(float quality) Set the quality of the image encoding (not supported by all
ImageEncoders). |