public interface BitmapEncoder
| Modifier and Type | Method and Description |
|---|---|
void |
encode(BufferedImage image,
OutputStream out,
String mime,
int resolution)
Encodes a BufferedImage to a target format and writes it to the
OutputStream.
|
String[] |
getSupportedMIMETypes()
Returns an array of MIME types supported.
|
String[] getSupportedMIMETypes()
void encode(BufferedImage image, OutputStream out, String mime, int resolution) throws IOException
image - the image to encodeout - the OutputStream to write the image tomime - the MIME type in which to encode the imageresolution - the resolution in dpi of the imageIOException - in case of an I/O problemCopyright © 2003–2023. All rights reserved.