public class ImageStream extends Stream
| Modifier and Type | Field and Description |
|---|---|
static Name |
BITSPERCOMPONENT_KEY |
static Name |
BLACKIS1_KEY |
static Name |
BPC_KEY |
protected static java.lang.String[] |
CCITTFAX_DECODE_FILTERS |
static Name |
COLUMNS_KEY |
static Name |
D_KEY |
protected static java.lang.String[] |
DCT_DECODE_FILTERS |
static Name |
DECODE_KEY |
static Name |
DECODEPARMS_KEY |
static Name |
DP_KEY |
static Name |
ENCODEDBYTEALIGN_KEY |
protected static java.lang.String[] |
JBIG2_DECODE_FILTERS |
static Name |
JBIG2GLOBALS_KEY |
protected static java.lang.String[] |
JPX_DECODE_FILTERS |
static Name |
K_KEY |
static Name |
MASK_KEY |
static Name |
ROWS_KEY |
static Name |
SMASK_KEY |
static Name |
TYPE_VALUE |
COLORSPACE_KEY, compressed, CS_KEY, DECODEPARAM_KEY, F_KEY, FILTER_KEY, H_KEY, HEIGHT_KEY, I_KEY, IM_KEY, IMAGEMASK_KEY, INDEXED_KEY, pObjectReference, rawBytes, W_KEY, WIDTH_KEYentries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
ImageStream(Library l,
java.util.HashMap h,
byte[] rawBytes) |
ImageStream(Library l,
java.util.HashMap h,
SeekableInputConstrainedWrapper streamInputWrapper)
Create a new instance of a Stream.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
forceJaiCcittFax(boolean enable)
Used to enable/disable the loading of CCITTFax images using JAI library.
|
boolean |
getBlackIs1(Library library,
java.util.HashMap decodeParmsDictionary)
If BlackIs1 was not specified, then return null, instead of the
default value of false, so we can tell if it was given or not
|
PColorSpace |
getColourSpace() |
int |
getHeight() |
java.awt.image.BufferedImage |
getImage(GraphicsState graphicsState,
Resources resources)
Gets the image object for the given resource.
|
int |
getWidth() |
void |
init()
Initiate the Dictionary.
|
boolean |
isImageMask()
Does the image have an ImageMask.
|
java.lang.String |
toString()
Return a string description of the object.
|
getDecodedByteArrayInputStream, getDecodedStreamBytes, getDecodedStreamBytes, getFilterNames, getNormalisedFilterNames, getPObjectReference, getRawBytes, isImageSubtype, isRawBytesCompressed, setPObjectReference, setRawBytesgetEntries, getFloat, getInt, getLibrary, getNumber, getObject, isDeleted, isNew, setDeleted, setNewpublic static final Name TYPE_VALUE
public static final Name BITSPERCOMPONENT_KEY
public static final Name BPC_KEY
public static final Name DECODE_KEY
public static final Name D_KEY
public static final Name SMASK_KEY
public static final Name MASK_KEY
public static final Name JBIG2GLOBALS_KEY
public static final Name DECODEPARMS_KEY
public static final Name DP_KEY
public static final Name K_KEY
public static final Name ENCODEDBYTEALIGN_KEY
public static final Name COLUMNS_KEY
public static final Name ROWS_KEY
public static final Name BLACKIS1_KEY
protected static final java.lang.String[] CCITTFAX_DECODE_FILTERS
protected static final java.lang.String[] DCT_DECODE_FILTERS
protected static final java.lang.String[] JBIG2_DECODE_FILTERS
protected static final java.lang.String[] JPX_DECODE_FILTERS
public ImageStream(Library l, java.util.HashMap h, SeekableInputConstrainedWrapper streamInputWrapper)
l - library containing a hash of all document objectsh - HashMap of parameters specific to the Stream object.streamInputWrapper - Accessor to stream byte datapublic ImageStream(Library l, java.util.HashMap h, byte[] rawBytes)
public void init()
Dictionaryinit in class Dictionarypublic int getWidth()
public int getHeight()
public java.awt.image.BufferedImage getImage(GraphicsState graphicsState, Resources resources)
graphicsState - graphic state for image or parent formresources - resources containing image referencepublic boolean getBlackIs1(Library library, java.util.HashMap decodeParmsDictionary)
public boolean isImageMask()
public static void forceJaiCcittFax(boolean enable)
enable - eanbpublic PColorSpace getColourSpace()