com.itextpdf.tool.xml.css.apply
Class ImageCssApplier

java.lang.Object
  extended by com.itextpdf.tool.xml.css.apply.ImageCssApplier

public class ImageCssApplier
extends Object

Class that applies the parsed CSS to an Image object.

Author:
redlab_b

Constructor Summary
ImageCssApplier()
           
 
Method Summary
 Image apply(Image img, Tag tag)
          Applies CSS to an Image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCssApplier

public ImageCssApplier()
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 image
tag - the tag with the css
Returns:
a styled Image


Copyright © 2015. All Rights Reserved.