public class PDFImage extends Stream
Constructor and Description |
---|
PDFImage(int number,
java.awt.Image img,
java.lang.String softMaskImageRef)
Creates a new image object.
|
Modifier and Type | Method and Description |
---|---|
protected Dictionary |
createDictionary(int streamLength)
Creates a dictionary reflecting the current configuration for this
image.
|
byte[] |
getRawStreamData()
Returns the raw image data.
|
addFilter, getObjectBytes, removeFilters
getGeneration, getNumber, getReference, toPDFBytes
public PDFImage(int number, java.awt.Image img, java.lang.String softMaskImageRef)
number
- the PDF object number.img
- the AWT image object (null
not permitted).softMaskImageRef
- the soft mask image reference (null
permitted).public byte[] getRawStreamData()
getRawStreamData
in class Stream
protected Dictionary createDictionary(int streamLength)
createDictionary
in class Stream
streamLength
- the stream length.