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 PRStream
IOException
public PdfImageObject(PRStream stream, PdfDictionary colorSpaceDic) throws IOException
stream
- a PRStream
colorSpaceDic
- a color space dictionary
IOException
protected PdfImageObject(PdfDictionary dictionary, byte[] samples, PdfDictionary colorSpaceDic) throws IOException
dictionary
- the dictionary for the image
samples
- the samples
colorSpaceDic
- a color space dictionary
IOException
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
Copyright © 1998–2022. All rights reserved.