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 XObject
ref
- a reference to the image XObject
colorSpaceDictionary
- colourspace of the image
public static ImageRenderInfo createForXObject(GraphicsState gs, PdfIndirectReference ref, PdfDictionary colorSpaceDictionary, Collection<MarkedContentInfo> markedContentInfo)
gs
- graphic state of the XObject
ref
- a reference to the image XObject
colorSpaceDictionary
- colourspace of the image
markedContentInfo
- marked content information for the XObject
protected static ImageRenderInfo createForEmbeddedImage(GraphicsState gs, InlineImageInfo inlineImageInfo, PdfDictionary colorSpaceDictionary, Collection<MarkedContentInfo> markedContentInfo)
gs
- graphic state of the XObject
InlineImageInfo
- a reference to the inline image
colorSpaceDictionary
- colourspace of the image
markedContentInfo
- marked content information for the XObject
public PdfImageObject getImage() throws IOException
IOException
public Vector getStartPoint()
public Matrix getImageCTM()
public float getArea()
public PdfIndirectReference getRef()
public BaseColor getCurrentFillColor()
public boolean hasMcid(int mcid)
mcid
- a marked content id
public boolean hasMcid(int mcid, boolean checkTheTopmostLevelOnly)
mcid
- a marked content id
checkTheTopmostLevelOnly
- indicates whether to check the topmost level of marked content stack only
public Integer getMcid()
Copyright © 1998–2022. All rights reserved.