com.itextpdf.text.pdf.parser
Class ImageRenderInfo

java.lang.Object
  extended by com.itextpdf.text.pdf.parser.ImageRenderInfo

public class ImageRenderInfo
extends Object

Represents image data from a PDF

Since:
5.0.1

Method Summary
protected static ImageRenderInfo createForEmbeddedImage(Matrix ctm, InlineImageInfo inlineImageInfo, PdfDictionary colorSpaceDictionary)
          Create an ImageRenderInfo object based on inline image data.
static ImageRenderInfo createForXObject(Matrix ctm, PdfIndirectReference ref, PdfDictionary colorSpaceDictionary)
          Create an ImageRenderInfo object based on an XObject (this is the most common way of including an image in PDF)
 float getArea()
           
 PdfImageObject getImage()
          Gets an object containing the image dictionary and bytes.
 Matrix getImageCTM()
           
 PdfIndirectReference getRef()
           
 Vector getStartPoint()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createForXObject

public static ImageRenderInfo createForXObject(Matrix ctm,
                                               PdfIndirectReference ref,
                                               PdfDictionary colorSpaceDictionary)
Create an ImageRenderInfo object based on an XObject (this is the most common way of including an image in PDF)

Parameters:
ctm - the coordinate transformation matrix at the time the image is rendered
ref - a reference to the image XObject
Returns:
the ImageRenderInfo representing the rendered XObject
Since:
5.0.1

createForEmbeddedImage

protected static ImageRenderInfo createForEmbeddedImage(Matrix ctm,
                                                        InlineImageInfo inlineImageInfo,
                                                        PdfDictionary colorSpaceDictionary)
Create an ImageRenderInfo object based on inline image data. This is nowhere near completely thought through and really just acts as a placeholder.

Parameters:
ctm - the coordinate transformation matrix at the time the image is rendered
imageObject - the image object representing the inline image
Returns:
the ImageRenderInfo representing the rendered embedded image
Since:
5.0.1

getImage

public PdfImageObject getImage()
                        throws IOException
Gets an object containing the image dictionary and bytes.

Returns:
an object containing the image dictionary and byte[]
Throws:
IOException
Since:
5.0.2

getStartPoint

public Vector getStartPoint()
Returns:
a vector in User space representing the start point of the xobject

getImageCTM

public Matrix getImageCTM()
Returns:
The coordinate transformation matrix active when this image was rendered. Coordinates are in User space.
Since:
5.0.3

getArea

public float getArea()
Returns:
the size of the image, in User space units
Since:
5.0.3

getRef

public PdfIndirectReference getRef()
Returns:
an indirect reference to the image
Since:
5.0.2


Copyright © 2013. All Rights Reserved.