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