public class PDFPageImageElement extends PDFPageElement
ELEMENT_TYPE_ALL, ELEMENT_TYPE_COMPOSITE, ELEMENT_TYPE_IMAGE, ELEMENT_TYPE_INLINE_IMAGE, ELEMENT_TYPE_PATH, ELEMENT_TYPE_TEXT| Modifier and Type | Method and Description |
|---|---|
int |
getAlternateColorSpaceType()
Returns alternate color space type of the image.
|
int |
getBitsPerComponent()
Returns number of color channels in the image.
|
int |
getColorSpaceType()
Returns color space type of the image.
|
BufferedImage |
getImage()
Returns actual image represented by the page element.
|
int |
getImageHeight()
Returns height of the image.
|
int |
getImageStreamLength() |
int |
getImageWidth()
Returns width of the image.
|
Color |
getMaskColor()
Returns color used as the color mask for the image.
|
int |
hashCode() |
boolean |
isInlineImage()
Returns whether the page element is an inline image.
|
boolean |
isMaskedImage()
Returns whether the image element is represented by a masked image.
|
String |
toString() |
getBoundingRect, getElementType, getFillColor, getGraphicsState, getPageNum, getStrokeColor, getTransformationMatrix, getX, getY, isAtPoint, isAtRectpublic BufferedImage getImage()
public int getImageWidth()
public int getImageHeight()
public int getBitsPerComponent()
public boolean isMaskedImage()
public Color getMaskColor()
null if image has no color
maskpublic boolean isInlineImage()
public int getColorSpaceType()
color
space typepublic int getAlternateColorSpaceType()
color
space typepublic int getImageStreamLength()
public String toString()
toString in class PDFPageElement