Package com.itextpdf.tool.xml.css.apply
Class ImageCssApplier
- java.lang.Object
-
- com.itextpdf.tool.xml.css.apply.ImageCssApplier
-
- All Implemented Interfaces:
CssApplier<Image>
public class ImageCssApplier extends java.lang.Object implements CssApplier<Image>
Class that applies the parsed CSS to an Image object.
-
-
Constructor Summary
Constructors Constructor Description ImageCssApplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Image
apply(Image img, Tag tag)
Applies CSS to an Image.Image
apply(Image img, Tag tag, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx)
Styles an element
-
-
-
Method Detail
-
apply
public Image apply(Image img, Tag tag)
Applies CSS to an Image. Currently supported: - width - height - borders (color, width) - spacing before and after- Parameters:
img
- the imagetag
- the tag with the css- Returns:
- a styled Image
-
apply
public Image apply(Image img, Tag tag, MarginMemory mm, PageSizeContainable psc, HtmlPipelineContext ctx)
Description copied from interface:CssApplier
Styles an element- Specified by:
apply
in interfaceCssApplier<Image>
- Parameters:
img
- the elementtag
- the tagmm
- the MarginMemorypsc
- the PageSizeContainablectx
- the HtmlPipelineContext- Returns:
- a styled
Paragraph
-
-