public class PDImage extends PDXObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PDImage.MetaClass
The meta class implementation
|
| Modifier and Type | Field and Description |
|---|---|
static String |
C_RENDERING_VALID1
the valid rendering intents *
|
static String |
C_RENDERING_VALID2 |
static String |
C_RENDERING_VALID3 |
static String |
C_RENDERING_VALID4 |
static COSName |
CN_Subtype_Image |
static COSName |
DK_Alternates |
static COSName |
DK_BitsPerComponent |
static COSName |
DK_BPC |
static COSName |
DK_ColorSpace |
static COSName |
DK_CS |
static COSName |
DK_D |
static COSName |
DK_Decode |
static COSName |
DK_DecodeParms |
static COSName |
DK_DP |
static COSName |
DK_H |
static COSName |
DK_Height |
static COSName |
DK_I |
static COSName |
DK_ID |
static COSName |
DK_IM |
static COSName |
DK_ImageMask |
static COSName |
DK_Intent |
static COSName |
DK_Interpolate |
static COSName |
DK_Mask |
static COSName |
DK_Metadata |
static COSName |
DK_Name |
static COSName |
DK_OC |
static COSName |
DK_OPI |
static COSName |
DK_SMask |
static COSName |
DK_SMaskInData |
static COSName |
DK_StructParent |
static COSName |
DK_W |
static COSName |
DK_Width |
static PDImage.MetaClass |
META
The meta class instance
|
CN_Type_XObject, DK_ResourcesDK_Subtype, DK_Type| Modifier and Type | Method and Description |
|---|---|
COSStream |
cosExtractJPEGStream() |
COSObject |
cosGetColorSpace() |
COSObject |
cosGetMask() |
COSArray |
cosSetColorSpace(COSArray colorspace) |
COSName |
cosSetColorSpace(COSName colorspace) |
byte[] |
getAdjustedBytes(int numComponents)
Returns the raw image bytes.
|
int |
getBitsPerComponent()
The number of bits per component.
|
byte[][] |
getColorKeyMask(int colors) |
PDColorSpace |
getColorSpace()
The color space used by the image.
|
int[] |
getDecode() |
int |
getHeight()
get the height of the raster image
|
PDImage |
getMaskImage() |
PDXObject |
getSMask() |
int |
getWidth()
get the width of the raster image
|
boolean |
hasTransparency() |
void |
invalidateCaches()
Invalidate all local caches as the base object may have changed.
|
boolean |
isImage()
true if this is an image. |
boolean |
isImageMask() |
boolean |
isInterpolate() |
void |
setBitsPerComponent(int bits) |
void |
setColorSpace(PDColorSpace paramCachedColorSpace)
In inline images the color space may reference the resource dictionary.
|
void |
setDecode(int[] decode) |
void |
setHeight(int height)
set the height of the raster image
|
void |
setImageMask(boolean flag) |
void |
setMask(PDXObject object) |
void |
setSMask(PDXObject object) |
void |
setWidth(int width)
set the width of the raster image
|
cosGetDict, getBytes, isForm, isPostscript, setBytescosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toStringchanged, cosGetArray, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldStringpublic static final String C_RENDERING_VALID1
public static final String C_RENDERING_VALID2
public static final String C_RENDERING_VALID3
public static final String C_RENDERING_VALID4
public static final COSName CN_Subtype_Image
public static final COSName DK_Alternates
public static final COSName DK_BitsPerComponent
public static final COSName DK_BPC
public static final COSName DK_ColorSpace
public static final COSName DK_CS
public static final COSName DK_D
public static final COSName DK_Decode
public static final COSName DK_DecodeParms
public static final COSName DK_DP
public static final COSName DK_H
public static final COSName DK_Height
public static final COSName DK_I
public static final COSName DK_ID
public static final COSName DK_IM
public static final COSName DK_ImageMask
public static final COSName DK_Intent
public static final COSName DK_Interpolate
public static final COSName DK_Mask
public static final COSName DK_Metadata
public static final COSName DK_Name
public static final COSName DK_OC
public static final COSName DK_OPI
public static final COSName DK_SMask
public static final COSName DK_SMaskInData
public static final COSName DK_StructParent
public static final COSName DK_W
public static final COSName DK_Width
public static final PDImage.MetaClass META
public COSStream cosExtractJPEGStream() throws IOException
IOExceptionpublic COSObject cosGetColorSpace()
public COSObject cosGetMask()
public byte[] getAdjustedBytes(int numComponents)
public int getBitsPerComponent()
This information is stored in different attributes depending if the image is inlined or explicit.
public byte[][] getColorKeyMask(int colors)
public PDColorSpace getColorSpace()
Color space information is stored in different attributes in inlined and explicit images.
public int[] getDecode()
public int getHeight()
public PDImage getMaskImage()
public PDXObject getSMask()
public int getWidth()
public boolean hasTransparency()
public void invalidateCaches()
COSBasedObjectinvalidateCaches in class COSBasedObjectpublic boolean isImage()
PDXObjecttrue if this is an image.public boolean isImageMask()
public boolean isInterpolate()
public void setBitsPerComponent(int bits)
public void setColorSpace(PDColorSpace paramCachedColorSpace)
paramCachedColorSpace - The color space to use.public void setDecode(int[] decode)
public void setHeight(int height)
height - the height of the raster imagepublic void setImageMask(boolean flag)
public void setMask(PDXObject object)
public void setSMask(PDXObject object)
public void setWidth(int width)
width - the width of the raster imageCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.