Top Constructors Methods
com.openhtmltopdf.simple.extend

public Class ReplacedElementScaleHelper

extends Object
Class Inheritance
Imports
java.awt.Rectangle, java.awt.geom.AffineTransform, .NoninvertibleTransformException

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static AffineTransform

Returns:

AffineTransform or null if not available.
createScaleTransform
(double dotsPerPixel, Rectangle
the desired size
contentBounds
,
float
the intrinsic width
width
,
float
the intrinsic height
height
)

Creates a scale AffineTransform to scale a given replaced element to the desired size.

public static AffineTransform
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ReplacedElementScaleHelperback to summary
public ReplacedElementScaleHelper()

Method Detail

createScaleTransformback to summary
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
contentBounds:Rectangle

the desired size

width:float

the intrinsic width

height:float

the intrinsic height

Returns:AffineTransform

AffineTransform or null if not available.

inverseOrNullback to summary
public static AffineTransform inverseOrNull(AffineTransform in)