|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.pdf.codec.BmpImage
public class BmpImage
Reads a BMP image. All types of BMP can be read.
It is based in the JAI codec.
Field Summary | |
---|---|
HashMap<String,Object> |
properties
|
Method Summary | |
---|---|
static Image |
getImage(byte[] data)
Reads a BMP from a byte array. |
static Image |
getImage(InputStream is)
Reads a BMP from a stream. |
static Image |
getImage(InputStream is,
boolean noHeader,
int size)
Reads a BMP from a stream. |
static Image |
getImage(String file)
Reads a BMP from a file. |
static Image |
getImage(URL url)
Reads a BMP from an url. |
protected void |
process(InputStream stream,
boolean noHeader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public HashMap<String,Object> properties
Method Detail |
---|
public static Image getImage(URL url) throws IOException
url
- the url
IOException
- on errorpublic static Image getImage(InputStream is) throws IOException
is
- the stream
IOException
- 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 BMP
IOException
- on errorpublic static Image getImage(String file) throws IOException
file
- the file
IOException
- on errorpublic static Image getImage(byte[] data) throws IOException
data
- the byte array
IOException
- on errorprotected void process(InputStream stream, boolean noHeader) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |