Package io.scanbot.sdk.geometry
Class AspectRatio
java.lang.Object
io.scanbot.sdk.geometry.AspectRatio
Aspect ratio is the ratio of the width to the height of an image or screen.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs AspectRatio with default parameters.AspectRatio(double width, double height) Constructs AspectRatio with the given params. -
Method Summary
-
Constructor Details
-
AspectRatio
public AspectRatio(double width, double height) Constructs AspectRatio with the given params.- Parameters:
width- Width component of the aspect ratio. Default is `1.0`.height- Height component of the aspect ratio. Default is `1.0`.
-
AspectRatio
public AspectRatio()Constructs AspectRatio with default parameters.
-
-
Method Details
-
getWidth
public double getWidth()Getter for width field. See constructor documentation for more information about the field.- Returns:
- width
-
getHeight
public double getHeight()Getter for height field. See constructor documentation for more information about the field.- Returns:
- height
-