public class ImageRenderInfo
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
protected static ImageRenderInfo |
createForEmbeddedImage(GraphicsState gs,
InlineImageInfo inlineImageInfo,
PdfDictionary colorSpaceDictionary,
java.util.Collection<MarkedContentInfo> markedContentInfo) |
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)
|
static ImageRenderInfo |
createForXObject(GraphicsState gs,
PdfIndirectReference ref,
PdfDictionary colorSpaceDictionary,
java.util.Collection<MarkedContentInfo> markedContentInfo) |
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() |
|
java.lang.Integer |
getMcid() |
|
PdfIndirectReference |
getRef() |
|
Vector |
getStartPoint() |
|
boolean |
hasMcid(int mcid) |
Checks if the text belongs to a marked content sequence
with a given mcid.
|
boolean |
hasMcid(int mcid,
boolean checkTheTopmostLevelOnly) |
Checks if the text belongs to a marked content sequence
with a given mcid.
|
public static ImageRenderInfo createForXObject(GraphicsState gs, PdfIndirectReference ref, PdfDictionary colorSpaceDictionary)
gs - graphic state of the XObjectref - a reference to the image XObjectcolorSpaceDictionary - colourspace of the imagepublic static ImageRenderInfo createForXObject(GraphicsState gs, PdfIndirectReference ref, PdfDictionary colorSpaceDictionary, java.util.Collection<MarkedContentInfo> markedContentInfo)
gs - graphic state of the XObjectref - a reference to the image XObjectcolorSpaceDictionary - colourspace of the imagemarkedContentInfo - marked content information for the XObjectprotected static ImageRenderInfo createForEmbeddedImage(GraphicsState gs, InlineImageInfo inlineImageInfo, PdfDictionary colorSpaceDictionary, java.util.Collection<MarkedContentInfo> markedContentInfo)
gs - graphic state of the XObjectInlineImageInfo - a reference to the inline imagecolorSpaceDictionary - colourspace of the imagemarkedContentInfo - marked content information for the XObjectpublic PdfImageObject getImage() throws java.io.IOException
java.io.IOExceptionpublic Vector getStartPoint()
public Matrix getImageCTM()
public float getArea()
public PdfIndirectReference getRef()
public BaseColor getCurrentFillColor()
public boolean hasMcid(int mcid)
mcid - a marked content idpublic boolean hasMcid(int mcid,
boolean checkTheTopmostLevelOnly)
mcid - a marked content idcheckTheTopmostLevelOnly - indicates whether to check the topmost level of marked content stack onlypublic java.lang.Integer getMcid()
Copyright © 1998–2018. All rights reserved.