Package io.scanbot.sdk.geometry
Class AspectRatio
- java.lang.Object
-
- io.scanbot.sdk.geometry.AspectRatio
-
public class AspectRatio extends java.lang.ObjectAspect ratio is the ratio of the width to the height of an image or screen.
-
-
Constructor Summary
Constructors Constructor Description AspectRatio()Constructs AspectRatio with default parameters.AspectRatio(double width, double height)Constructs AspectRatio with the given params.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetHeight()Getter for height field.doublegetWidth()Getter for width field.
-
-
-
Constructor Detail
-
AspectRatio
public AspectRatio(double width, double height)Constructs AspectRatio with the given params.- Parameters:
width- Width component of the aspect ratio. Default is 1.0height- Height component of the aspect ratio. Default is 1.0
-
AspectRatio
public AspectRatio()
Constructs AspectRatio with default parameters.
-
-