|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 | |
---|---|
java.util.HashMap<java.lang.String,java.lang.Object> |
properties
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.HashMap<java.lang.String,java.lang.Object> properties
Method Detail |
---|
public static Image getImage(java.net.URL url) throws java.io.IOException
url
- the url
java.io.IOException
- on errorpublic static Image getImage(java.io.InputStream is) throws java.io.IOException
is
- the stream
java.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 BMP
java.io.IOException
- on errorpublic static Image getImage(java.lang.String file) throws java.io.IOException
file
- the file
java.io.IOException
- on errorpublic static Image getImage(byte[] data) throws java.io.IOException
data
- the byte array
java.io.IOException
- on errorprotected void process(java.io.InputStream stream, boolean noHeader) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |