|
Scanbot SDK
|
Aspect ratio is the ratio of the width to the height of an image or screen. More...
Public Member Functions | |
| None | __init__ (self, *, float width=1.0, float height=1.0) |
| Constructs AspectRatio with the given params. | |
| float | width (self) |
| Getter for width field. | |
| float | height (self) |
| Getter for height field. | |
Aspect ratio is the ratio of the width to the height of an image or screen.
| None __init__ | ( | self, | |
| * | , | ||
| float | width = 1.0, | ||
| float | height = 1.0 ) |
Constructs AspectRatio with the given params.
| width | Width component of the aspect ratio. Default is 1.0 |
| height | Height component of the aspect ratio. Default is 1.0 |
| float height | ( | self | ) |
Getter for height field.
See __init__ method documentation for more information about the field.
| float width | ( | self | ) |
Getter for width field.
See __init__ method documentation for more information about the field.