|
||||||||||
| 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.
| Nested Class Summary | |
|---|---|
static class |
PdfImageObject.ImageBytesType
Different types of data that can be stored in the bytes of a PdfImageObject |
| Constructor Summary | |
|---|---|
protected |
PdfImageObject(PdfDictionary dictionary,
byte[] samples,
PdfDictionary colorSpaceDic)
Creats a PdfImage object using an explicitly provided dictionary and image bytes |
|
PdfImageObject(PRStream stream)
Creates a PdfImage object. |
|
PdfImageObject(PRStream stream,
PdfDictionary colorSpaceDic)
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()
|
PdfImageObject.ImageBytesType |
getImageBytesType()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PdfImageObject(PRStream stream)
throws IOException
stream - a PRStream
IOException
public PdfImageObject(PRStream stream,
PdfDictionary colorSpaceDic)
throws IOException
stream - a PRStreamcolorSpaceDic - a color space dictionary
IOException
protected PdfImageObject(PdfDictionary dictionary,
byte[] samples,
PdfDictionary colorSpaceDic)
throws IOException
dictionary - the dictionary for the imagesamples - the samplescolorSpaceDic - a color space dictionary
IOException| Method Detail |
|---|
public String getFileType()
public PdfImageObject.ImageBytesType getImageBytesType()
public PdfObject get(PdfName key)
key - a key
public PdfDictionary getDictionary()
public byte[] getImageAsBytes()
getImageBytesType()
IOException
public BufferedImage getBufferedImage()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||