Class ReplacedElementScaleHelper

java.lang.Object
com.openhtmltopdf.simple.extend.ReplacedElementScaleHelper

public class ReplacedElementScaleHelper extends Object
  • Constructor Details

    • ReplacedElementScaleHelper

      public ReplacedElementScaleHelper()
  • Method Details

    • createScaleTransform

      public static AffineTransform createScaleTransform(double dotsPerPixel, Rectangle contentBounds, float width, float height)
      Creates a scale AffineTransform to scale a given replaced element to the desired size.
      Parameters:
      dotsPerPixel -
      contentBounds - the desired size
      width - the intrinsic width
      height - the intrinsic height
      Returns:
      AffineTransform or null if not available.
    • inverseOrNull

      public static AffineTransform inverseOrNull(AffineTransform in)