public class BmpImage extends Object
It is based in the JAI codec.
| Modifier and Type | Method and Description |
|---|---|
static Image |
getImage(byte[] data)
Reads a BMP from a byte array.
|
static Image |
getImage(InputStream is,
boolean noHeader,
int size)
Reads a BMP from a stream.
|
static Image |
getImage(URL url)
Reads a BMP from an url.
|
public static Image getImage(URL url) throws IOException
url - the urlIOException - on errorpublic static Image getImage(InputStream is, boolean noHeader, int size) throws IOException
is - the streamnoHeader - true to process a plain DIBsize - the size of the DIB. Not used for a BMPIOException - on errorpublic static Image getImage(byte[] data) throws IOException
data - the byte arrayIOException - on errorCopyright © 2021. All rights reserved.