public class BmpEncoder extends Object
BmpEncoder encoder = new BmpEncoder();
encoder.write(image, outputStream);
Constructor and Description |
---|
BmpEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
write(BufferedImage image,
OutputStream outputStream)
Writes BufferedImage as a BMP into an OutputStream
|
public void write(BufferedImage image, OutputStream outputStream) throws IOException
This method does not close the provided OutputStream after the write operation has completed; it is the responsibility of the caller to close the stream.
image
- BufferedImage to writeoutputStream
- The stream to write the image toIOException
- if the image wasn't writtenCopyright 2019 IDRsolutions ltd. All rights reserved.