public class ImageRenderInfo extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static ImageRenderInfo |
createForEmbeddedImage(GraphicsState gs,
InlineImageInfo inlineImageInfo,
PdfDictionary colorSpaceDictionary,
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,
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() |
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, 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, 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 IOException
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 Integer getMcid()
Copyright © 2022. All rights reserved.