public class BmpImage
extends java.lang.Object
It is based in the JAI codec.
| Modifier and Type | Field | Description |
|---|---|---|
java.util.HashMap<java.lang.String,java.lang.Object> |
properties |
| Modifier and Type | Method | Description |
|---|---|---|
static Image |
getImage(byte[] data) |
Reads a BMP from a byte array.
|
static Image |
getImage(java.io.InputStream is) |
Reads a BMP from a stream.
|
static Image |
getImage(java.io.InputStream is,
boolean noHeader,
int size) |
Reads a BMP from a stream.
|
static Image |
getImage(java.lang.String file) |
Reads a BMP from a file.
|
static Image |
getImage(java.net.URL url) |
Reads a BMP from an url.
|
protected void |
process(java.io.InputStream stream,
boolean noHeader) |
public static Image getImage(java.net.URL url) throws java.io.IOException
url - the urljava.io.IOException - on errorpublic static Image getImage(java.io.InputStream is) throws java.io.IOException
is - the streamjava.io.IOException - on errorpublic static Image getImage(java.io.InputStream is, boolean noHeader, int size) throws java.io.IOException
is - the streamnoHeader - true to process a plain DIBsize - the size of the DIB. Not used for a BMPjava.io.IOException - on errorpublic static Image getImage(java.lang.String file) throws java.io.IOException
file - the filejava.io.IOException - on errorpublic static Image getImage(byte[] data) throws java.io.IOException
data - the byte arrayjava.io.IOException - on errorprotected void process(java.io.InputStream stream,
boolean noHeader)
throws java.io.IOException
java.io.IOExceptionCopyright © 1998–2018. All rights reserved.