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 Imageapply(Image img, Tag tag)Applies CSS to an Image.Imageapply(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:CssApplierStyles an element- Specified by:
applyin interfaceCssApplier<Image>- Parameters:
img- the elementtag- the tagmm- the MarginMemorypsc- the PageSizeContainablectx- the HtmlPipelineContext- Returns:
- a styled
Paragraph
-
-