public class ImageRenderInfo extends Object
Modifier and Type | Field and Description |
---|---|
private Matrix |
ctm
The coordinate transformation matrix that was in effect when the image was rendered
|
private PdfImageObject |
imageObject
the image object to be rendered, if it has been parsed already.
|
private PdfIndirectReference |
ref
A reference to the image XObject
|
Modifier | Constructor and Description |
---|---|
private |
ImageRenderInfo(Matrix ctm,
PdfIndirectReference ref) |
Modifier and Type | Method and Description |
---|---|
protected static ImageRenderInfo |
createdForEmbeddedImage(Matrix ctm,
PdfImageObject imageObject)
Create an ImageRenderInfo object based on inline image data.
|
static ImageRenderInfo |
createForXObject(Matrix ctm,
PdfIndirectReference ref)
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() |
private void |
prepareImageObject() |
private final Matrix ctm
private final PdfIndirectReference ref
private PdfImageObject imageObject
private ImageRenderInfo(Matrix ctm, PdfIndirectReference ref)
public static ImageRenderInfo createForXObject(Matrix ctm, PdfIndirectReference ref)
ctm
- the coordinate transformation matrix at the time the image is renderedref
- a reference to the image XObjectprotected static ImageRenderInfo createdForEmbeddedImage(Matrix ctm, PdfImageObject imageObject)
ctm
- the coordinate transformation matrix at the time the image is renderedimageObject
- the image object representing the inline imagepublic PdfImageObject getImage()
private void prepareImageObject() throws IOException
IOException
public Vector getStartPoint()
public Matrix getImageCTM()
public float getArea()
public PdfIndirectReference getRef()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses