|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.parser.PdfImageObject
public class PdfImageObject
An object that contains an image dictionary and image bytes.
| Field Summary | |
|---|---|
protected String |
fileType
|
static String |
TYPE_JP2
|
static String |
TYPE_JPG
|
static String |
TYPE_PNG
|
static String |
TYPE_TIF
|
| Constructor Summary | |
|---|---|
protected |
PdfImageObject(PdfDictionary dictionary,
byte[] samples)
Creats a PdfImage object using an explicitly provided dictionary and image bytes |
|
PdfImageObject(PRStream stream)
Creates a PdfImage object. |
| Method Summary | |
|---|---|
PdfObject |
get(PdfName key)
Returns an entry from the image dictionary. |
BufferedImage |
getBufferedImage()
|
PdfDictionary |
getDictionary()
Returns the image dictionary. |
String |
getFileType()
|
byte[] |
getImageAsBytes()
|
byte[] |
getStreamBytes()
Returns the image bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE_PNG
public static final String TYPE_JPG
public static final String TYPE_JP2
public static final String TYPE_TIF
protected String fileType
| Constructor Detail |
|---|
public PdfImageObject(PRStream stream)
throws IOException
stream - a PRStream
IOException
protected PdfImageObject(PdfDictionary dictionary,
byte[] samples)
throws IOException
dictionary - the dictionary for the imagesamples - the samples
IOException| Method Detail |
|---|
public String getFileType()
public PdfObject get(PdfName key)
key - a key
public PdfDictionary getDictionary()
public byte[] getStreamBytes()
public byte[] getImageAsBytes()
throws IOException
IOException
public BufferedImage getBufferedImage()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||