|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.pdf.codec.PngImage
public class PngImage
Reads a PNG image. All types of PNG can be read.
It is based in part in the JAI codec.
Field Summary | |
---|---|
static String |
cHRM
A PNG marker. |
static String |
gAMA
A PNG marker. |
static String |
iCCP
A PNG marker. |
static String |
IDAT
A PNG marker. |
static String |
IEND
A PNG marker. |
static String |
IHDR
A PNG marker. |
static String |
pHYs
A PNG marker. |
static String |
PLTE
A PNG marker. |
static int[] |
PNGID
Some PNG specific values. |
static String |
sRGB
A PNG marker. |
static String |
tRNS
A PNG marker. |
Method Summary | |
---|---|
static Image |
getImage(byte[] data)
Reads a PNG from a byte array. |
static Image |
getImage(InputStream is)
Reads a PNG from a stream. |
static Image |
getImage(String file)
Reads a PNG from a file. |
static Image |
getImage(URL url)
Reads a PNG from an url. |
static int |
getInt(InputStream is)
Gets an int from an InputStream . |
static String |
getString(InputStream is)
Gets a String from an InputStream . |
static int |
getWord(InputStream is)
Gets a word from an InputStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int[] PNGID
public static final String IHDR
public static final String PLTE
public static final String IDAT
public static final String IEND
public static final String tRNS
public static final String pHYs
public static final String gAMA
public static final String cHRM
public static final String sRGB
public static final String iCCP
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(String file) throws IOException
file
- the file
IOException
- on errorpublic static Image getImage(byte[] data) throws IOException
data
- the byte array
IOException
- on errorpublic static final int getInt(InputStream is) throws IOException
int
from an InputStream
.
is
- an InputStream
int
IOException
public static final int getWord(InputStream is) throws IOException
word
from an InputStream
.
is
- an InputStream
int
IOException
public static final String getString(InputStream is) throws IOException
String
from an InputStream
.
is
- an InputStream
int
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |