Package com.openhtmltopdf.simple.extend
Class ReplacedElementScaleHelper
java.lang.Object
com.openhtmltopdf.simple.extend.ReplacedElementScaleHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AffineTransformcreateScaleTransform(double dotsPerPixel, Rectangle contentBounds, float width, float height) Creates a scaleAffineTransformto scale a given replaced element to the desired size.static AffineTransform
-
Constructor Details
-
ReplacedElementScaleHelper
public ReplacedElementScaleHelper()
-
-
Method Details
-
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
-