Class Transform

java.lang.Object
com.itextpdf.layout.properties.Transform

public class Transform extends Object
This class is used to store and process multiple transform css property before drawing.
  • Constructor Details

  • Method Details

    • addSingleTransform

      public void addSingleTransform (Transform.SingleTransform singleTransform)
      Adds a Transform.SingleTransform in a list of single transforms to process later.
      Parameters:
      singleTransform - a Transform.SingleTransform instance
    • getAffineTransform

      public static AffineTransform getAffineTransform (Transform t, float width, float height)
      Converts the Transform instance, i.e. the list of Transform.SingleTransform instances, to the equivalent AffineTransform instance relatively to the available area, including resolving of percent values to point values.
      Parameters:
      t - a Transform instance to convert
      width - the width of available area, the point value of which is equivalent to 100% for percentage resolving
      height - the height of available area, the point value of which is equivalent to 100% for percentage resolving
      Returns:
      resulting affine transformation instance, accumulated from Transform