Gnostice PDFOne
Pro. Ed. v5.0.0


com.gnostice.pdfone
Class PdfPageImageElement

java.lang.Object
  extended bycom.gnostice.pdfone.PdfPageElement
      extended bycom.gnostice.pdfone.PdfPageImageElement

public class PdfPageImageElement
extends PdfPageElement

This class represents an image page element.


Field Summary
 
Fields inherited from class com.gnostice.pdfone.PdfPageElement
ELEMENT_TYPE_ALL, ELEMENT_TYPE_COMPOSITE, ELEMENT_TYPE_IMAGE, ELEMENT_TYPE_INLINE_IMAGE, ELEMENT_TYPE_PATH, ELEMENT_TYPE_TEXT
 
Method Summary
 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 getImageWidth()
          Returns width of the image.
 Color getMaskColor()
          Returns color used as the color mask for the image.
 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()
           
 
Methods inherited from class com.gnostice.pdfone.PdfPageElement
getBoundingRect, getElementType, getFillColor, getGraphicsState, getPageNum, getStrokeColor, getTransformationMatrix, getX, getY, isAtPoint, isAtRect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getImage

public BufferedImage getImage()
Returns actual image represented by the page element.

Returns:
actual image as a buffered image instance

getImageWidth

public int getImageWidth()
Returns width of the image.

Returns:
width of the image

getImageHeight

public int getImageHeight()
Returns height of the image.

Returns:
height of the image

getBitsPerComponent

public int getBitsPerComponent()
Returns number of color channels in the image.

Returns:
number of color channels

isMaskedImage

public boolean isMaskedImage()
Returns whether the image element is represented by a masked image.

Returns:
true if filled; false if otherwise

getMaskColor

public Color getMaskColor()
Returns color used as the color mask for the image.

Returns:
color mask of the image; null if image has no color mask

isInlineImage

public boolean isInlineImage()
Returns whether the page element is an inline image.

Returns:
true if filled; false if otherwise

getColorSpaceType

public int getColorSpaceType()
Returns color space type of the image.

Returns:
constant specifying the color space type

getAlternateColorSpaceType

public int getAlternateColorSpaceType()
Returns alternate color space type of the image.

Returns:
constant specifying the color space type

toString

public String toString()
Overrides:
toString in class PdfPageElement

Gnostice PDFOne
Pro. Ed. v5.0.0

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2010 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com