Scanbot SDK
Loading...
Searching...
No Matches
AspectRatio

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.
 

Detailed Description

Aspect ratio is the ratio of the width to the height of an image or screen.

Constructor & Destructor Documentation

◆ __init__()

None __init__ ( self,
* ,
float width = 1.0,
float height = 1.0 )

Constructs AspectRatio with the given params.

Parameters
widthWidth component of the aspect ratio. Default is 1.0
heightHeight component of the aspect ratio. Default is 1.0

Member Function Documentation

◆ height()

float height ( self)

Getter for height field.

See __init__ method documentation for more information about the field.

◆ width()

float width ( self)

Getter for width field.

See __init__ method documentation for more information about the field.


The documentation for this class was generated from the following file: