public class ImageRenderInfo extends Object
Modifier and Type | Method and Description |
---|---|
protected static ImageRenderInfo |
createForEmbeddedImage(GraphicsState gs, InlineImageInfo inlineImageInfo, PdfDictionary colorSpaceDictionary)
Create an ImageRenderInfo object based on inline image data.
|
static ImageRenderInfo |
createForXObject(GraphicsState gs, 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() |
BaseColor |
getCurrentFillColor() |
PdfImageObject |
getImage()
Gets an object containing the image dictionary and bytes.
|
Matrix |
getImageCTM() |
PdfIndirectReference |
getRef() |
Vector |
getStartPoint() |
public static ImageRenderInfo createForXObject(GraphicsState gs, PdfIndirectReference ref, PdfDictionary colorSpaceDictionary)
ctm
- the coordinate transformation matrix at the time the image is rendered
ref
- a reference to the image XObject
protected static ImageRenderInfo createForEmbeddedImage(GraphicsState gs, InlineImageInfo inlineImageInfo, PdfDictionary colorSpaceDictionary)
ctm
- the coordinate transformation matrix at the time the image is rendered
imageObject
- the image object representing the inline image
public PdfImageObject getImage() throws IOException
IOException
public Vector getStartPoint()
public Matrix getImageCTM()
public float getArea()
public PdfIndirectReference getRef()
public BaseColor getCurrentFillColor()
Copyright © 2016. All rights reserved.