public interface ImageInfo
Modifier and Type | Field and Description |
---|---|
static String |
CO_NAME_ASCII85_DECODE
Compression Name ASCII85Decode.
|
static String |
CO_NAME_ASCIIHEX_DECODE
Compression Name ASCIIHexDecode.
|
static String |
CO_NAME_CCITT_DECODE
Compression Name CCITFaxDecode.
|
static String |
CO_NAME_CRYPT
Compression Name Crypt.
|
static String |
CO_NAME_DCTDECODE
Compression Name DCTDecode (JPEG).
|
static String |
CO_NAME_FLATE_DECODE
Compression Name FlateDecode.
|
static String |
CO_NAME_JBIG2DECODE
Compression Name JBIG2Decode.
|
static String |
CO_NAME_JPXDECODE
Compression Name JPXDecode (JPEG 2000).
|
static String |
CO_NAME_LZW_DECODE
Compression Name LZWDecode.
|
static String |
CO_NAME_RUNLENGTHDECODE
Compression Name RunLengthDecode.
|
static String |
CS_NAME_CALGRAY
Color Space Name CalGray.
|
static String |
CS_NAME_CALRGB
Color Space Name CalRGB.
|
static String |
CS_NAME_DEVICECMYK
Color Space Name DeviceCMYK.
|
static String |
CS_NAME_DEVICEGRAY
Color Space Name DeviceGray.
|
static String |
CS_NAME_DEVICEN
Color Space Name DeviceN.
|
static String |
CS_NAME_DEVICERGB
Color Space Name DeviceRGB.
|
static String |
CS_NAME_ICCBASED
Color Space Name ICCBased.
|
static String |
CS_NAME_INDEXED
Color Space Name Indexed.
|
static String |
CS_NAME_LAB
Color Space Name Lab.
|
static String |
CS_NAME_PATTERN
Color Space Name Pattern.
|
static String |
CS_NAME_SEPARATION
Color Space Name Separation.
|
Modifier and Type | Method and Description |
---|---|
int |
getBPC()
Returns the bits per component for this image.
|
String |
getColorSpaceName()
Returns the color space of this image, from the PDF format specifications.
|
String |
getCompressionName()
Returns the type of compression used for this image, from the PDF format specifications.
|
float |
getDisplayHeight()
Return the height of this image as it is displayed on the page, in points.
|
float |
getDisplayWidth()
Return the width of this image as it is displayed on the page, in points.
|
float |
getDPIX()
Returns the horizontal image resolution, as displayed on the page, in dots per inch (DPI).
|
float |
getDPIY()
Returns the vertical image resolution, as displayed on the page, in dots per inch (DPI).
|
int |
getImageHeight()
Returns the height of this image, in pixels.
|
int |
getImageWidth()
Returns the width of this image, in pixels.
|
boolean |
isColor()
Returns true if the image is a color image.
|
boolean |
isGray()
Returns true if this image is a gray scale image ((i.e.
|
boolean |
isIndexed()
Returns true if the image uses an indexed color space.
|
boolean |
isMonochrome()
Returns true if this image's pixels are either black or white (1 or 0).
|
static final String CO_NAME_ASCII85_DECODE
static final String CO_NAME_ASCIIHEX_DECODE
static final String CO_NAME_CCITT_DECODE
static final String CO_NAME_CRYPT
static final String CO_NAME_DCTDECODE
static final String CO_NAME_FLATE_DECODE
static final String CO_NAME_JBIG2DECODE
static final String CO_NAME_JPXDECODE
static final String CO_NAME_LZW_DECODE
static final String CO_NAME_RUNLENGTHDECODE
static final String CS_NAME_CALGRAY
static final String CS_NAME_CALRGB
static final String CS_NAME_DEVICECMYK
static final String CS_NAME_DEVICEGRAY
static final String CS_NAME_DEVICERGB
static final String CS_NAME_ICCBASED
static final String CS_NAME_INDEXED
static final String CS_NAME_LAB
static final String CS_NAME_PATTERN
static final String CS_NAME_SEPARATION
static final String CS_NAME_DEVICEN
boolean isColor()
boolean isIndexed()
boolean isGray()
DeviceGray
or CalGray
)) and
pixels use more than 1 bit per pixel.boolean isMonochrome()
DeviceGray
or CalGray
) and use only 1 bit per pixel.String getCompressionName()
ASCII85Decode
, ASCIIHexDecode
, CCITTFaxDecode
,
Crypt
, DCTDecode (JPEG)
, JBig2Decode
, JPXDecode (JPEG200)
,
LZWDecode
, RunLengthDecode
.
Capitalization is not always correct in PDF documents, use case insensitive comparison.String getColorSpaceName()
CalGray
, CalRGB
, DeviceCMYK
,
DeviceGray
, DeviceN
, DeviceRGB
, ICCBased
,
Indexed
, Lab
, Patter
, Separation
.
Capitalization is not always correct, use case insensitive comparison.int getImageWidth()
int getImageHeight()
int getBPC()
float getDisplayWidth()
float getDisplayHeight()
float getDPIX()
float getDPIY()