Package io.scanbot.sdk.common
Class AspectRatio
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class AspectRatio implements Parcelable
Aspect ratio is the ratio of the width to the height of an image or screen.
-
-
Constructor Summary
Constructors Constructor Description AspectRatio(Map<String, Object> source)
AspectRatio(JSONObject json)
AspectRatio(Double width, Double height)
-
Method Summary
Modifier and Type Method Description final Double
getWidth()
Width component of the aspect ratio. final Double
getHeight()
Height component of the aspect ratio. final JSONObject
toJson(ToJsonConfiguration config)
final AspectRatio
clone()
final static AspectRatio
default()
-
-
-
Method Detail
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final AspectRatio clone()
-
default
final static AspectRatio default()
-
-