public class PdfImageObject extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PdfImageObject.ImageBytesType
Different types of data that can be stored in the bytes of a
PdfImageObject |
Modifier | Constructor and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
public PdfImageObject(PRStream stream) throws IOException
stream
- a PRStreamIOException
public PdfImageObject(PRStream stream, PdfDictionary colorSpaceDic) throws IOException
stream
- a PRStreamcolorSpaceDic
- a color space dictionaryIOException
protected PdfImageObject(PdfDictionary dictionary, byte[] samples, PdfDictionary colorSpaceDic) throws IOException
dictionary
- the dictionary for the imagesamples
- the samplescolorSpaceDic
- a color space dictionaryIOException
public String getFileType()
public PdfImageObject.ImageBytesType getImageBytesType()
public PdfObject get(PdfName key)
key
- a keypublic PdfDictionary getDictionary()
public byte[] getImageAsBytes()
getImageBytesType()
IOException
public BufferedImage getBufferedImage() throws IOException
IOException
Copyright © 2018. All rights reserved.