public class ImageRenderInfo extends AbstractRenderInfo
gs
Constructor and Description |
---|
ImageRenderInfo(Stack<CanvasTag> canvasTagHierarchy, CanvasGraphicsState gs, Matrix ctm, PdfStream imageStream, PdfName resourceName, PdfDictionary colorSpaceDictionary, boolean isInline)
Create an ImageRenderInfo
|
Modifier and Type | Method and Description |
---|---|
float |
getArea() |
List<CanvasTag> |
getCanvasTagHierarchy()
Gets hierarchy of the canvas tags that wraps given text.
|
PdfDictionary |
getColorSpaceDictionary() |
PdfImageXObject |
getImage()
Gets an image wrapped in ImageXObject.
|
Matrix |
getImageCtm() |
PdfName |
getImageResourceName() |
int |
getMcid()
Gets the marked-content identifier associated with this ImageRenderInfo instance
|
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.
|
boolean |
isInline() |
checkGraphicsState, getGraphicsState, isGraphicsStatePreserved, preserveGraphicsState, releaseGraphicsState
public ImageRenderInfo(Stack<CanvasTag> canvasTagHierarchy, CanvasGraphicsState gs, Matrix ctm, PdfStream imageStream, PdfName resourceName, PdfDictionary colorSpaceDictionary, boolean isInline)
ctm
- the coordinate transformation matrix at the time the image is rendered
imageStream
- image stream object
resourceName
-
colorSpaceDictionary
- the color space dictionary from resources which are associated with the image
isInline
- defines if the encountered image was inline
public PdfImageXObject getImage()
PdfImageXObject.getImageBytes(boolean)
, these image bytes represent native image, i.e you can write these bytes to disk and get just an usual image; PdfObjectWrapper.getPdfObject()
method; BufferedImage
with PdfImageXObject.getBufferedImage()
; public PdfName getImageResourceName()
public Vector getStartPoint()
public Matrix getImageCtm()
public float getArea()
public boolean isInline()
public PdfDictionary getColorSpaceDictionary()
public List<CanvasTag> getCanvasTagHierarchy()
public int getMcid()
ImageRenderInfo
instance
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
Copyright © 1998–2020 iText Group NV. All rights reserved.