Class AspectRatio

java.lang.Object
io.scanbot.sdk.geometry.AspectRatio

public class AspectRatio extends Object
Aspect ratio is the ratio of the width to the height of an image or screen.
  • 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