Package com.openhtmltopdf.simple.extend
Class ReplacedElementScaleHelper
- java.lang.Object
-
- com.openhtmltopdf.simple.extend.ReplacedElementScaleHelper
-
public class ReplacedElementScaleHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ReplacedElementScaleHelper()
-
Method Summary
Modifier and Type Method Description static AffineTransformcreateScaleTransform(double dotsPerPixel, Rectangle contentBounds, float width, float height)Creates a scaleAffineTransformto scale a given replaced element to the desired size.static AffineTransforminverseOrNull(AffineTransform in)
-
-
-
Method Detail
-
createScaleTransform
public static AffineTransform createScaleTransform(double dotsPerPixel, Rectangle contentBounds, float width, float height)
Creates a scaleAffineTransformto scale a given replaced element to the desired size.- Parameters:
dotsPerPixel-contentBounds- the desired sizewidth- the intrinsic widthheight- the intrinsic height- Returns:
- AffineTransform or null if not available.
-
inverseOrNull
public static AffineTransform inverseOrNull(AffineTransform in)
-
-