withAspectRatio method of the AreaOfInterest class
Sets a single aspect ratio value for the area of interest. The aspect ratio is counted by division of the document's width to its height.
In case the end-user changes a camera orientation during capture, the area of interest, set by this method, will be inverted. To save the area of interest unchanged, use the withAspectRatioForOrientations method.
AreaOfInterest withAspectRatio( Float value );
Parameters
- value
- The aspect ratio value of the area of interest.
Return values
The method returns an instance of an AreaOfInterest class with the passed to the method aspect ratio value.
02.03.2022 12:59:15