|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.Stream
org.icepdf.core.pobjects.ImageStream
public class ImageStream
ImageStream contains image data that is contains in an XObject of subtype Image.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class org.icepdf.core.pobjects.Stream |
|---|
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_KEY |
| Fields inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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(java.awt.Color fill,
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. |
| Methods inherited from class org.icepdf.core.pobjects.Stream |
|---|
getDecodedByteArrayInputStream, getDecodedStreamBytes, getDecodedStreamBytes, getFilterNames, getNormalisedFilterNames, getPObjectReference, getRawBytes, isImageSubtype, isRawBytesCompressed, setPObjectReference, setRawBytes |
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, isDeleted, isNew, setDeleted, setNew |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public 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
| Constructor Detail |
|---|
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 data
public ImageStream(Library l,
java.util.HashMap h,
byte[] rawBytes)
| Method Detail |
|---|
public void init()
Dictionary
init in class Dictionarypublic int getWidth()
public int getHeight()
public java.awt.image.BufferedImage getImage(java.awt.Color fill,
Resources resources)
fill - color value of imageresources - resouces containing image reference
public boolean getBlackIs1(Library library,
java.util.HashMap decodeParmsDictionary)
public boolean isImageMask()
public static void forceJaiCcittFax(boolean enable)
enable - eanbpublic PColorSpace getColourSpace()
public java.lang.String toString()
toString in class Stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||