- java.lang.Object
-
- org.jfree.pdf.internal.PDFObject
-
- org.jfree.pdf.stream.Stream
-
- org.jfree.pdf.stream.PDFSoftMaskImage
-
public class PDFSoftMaskImage extends Stream
Represents a soft mask image in a PDF document.
-
-
Constructor Summary
Constructors Constructor Description PDFSoftMaskImage(int number, java.awt.Image img)
Creates a new soft mask image object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Dictionary
createDictionary(int streamLength)
Creates a dictionary reflecting the current configuration for this image.byte[]
getRawStreamData()
Returns the raw image data.-
Methods inherited from class org.jfree.pdf.stream.Stream
addFilter, getObjectBytes, removeFilters
-
Methods inherited from class org.jfree.pdf.internal.PDFObject
getGeneration, getNumber, getReference, toPDFBytes
-
-
-
-
Method Detail
-
getRawStreamData
public byte[] getRawStreamData()
Returns the raw image data. Each call will resample the image data and populate a new array. Note that the stream may encode this data before it is written to the PDF output.- Specified by:
getRawStreamData
in classStream
- Returns:
- The raw stream data.
-
createDictionary
protected Dictionary createDictionary(int streamLength)
Creates a dictionary reflecting the current configuration for this image.- Overrides:
createDictionary
in classStream
- Parameters:
streamLength
- the stream length.- Returns:
- A dictionary.
-
-