initWithPortraitAspectRatio: method of the AUIAreaOfInterest interface
Initializes a new instance of the AUIAreaOfInterest interface via two aspect ratio values of the area of interest for different camera orientation. The aspect ratio is counted by division of the document's width to its height.
Setting separate values for different orientation types allow you to invert or save unchanged the area of interest if the end-user changes the camera orientation.
To invert the area of interest, you should pass the two opposite aspect ratio values, i.e. 2 and 0.5.
To save the area of interest unchanged, pass the equal aspect ratio values, i.e. 2 and 2.
- (instancetype)initWithPortraitAspectRatio:(CGFloat)portraitAspectRatio
landscapeAspectRatio:(CGFloat)landscapeAspectRatio;
Parameters
- portraitAspectRatio
- The aspect ratio value, calculated by division of the lower length limit to upper length limit. 0 if not set.
- landscapeAspectRatio
- The aspect ratio value, calculated by division of the upper length limit to lower length limit. 0 if not set.
02.03.2022 12:59:15