Table of Contents

Class AspectRatio

Namespace
ScanbotSDK.MAUI.Common
Assembly
ScanbotSDK.Shared.dll

Configuration of the finder's aspect ratio.

public class AspectRatio
Inheritance
AspectRatio
Inherited Members
Extension Methods

Constructors

AspectRatio()

public AspectRatio()

AspectRatio(double, double)

public AspectRatio(double width, double height)

Parameters

width double
height double

Fields

A4DocumentPortraitAspectRatio

public static AspectRatio A4DocumentPortraitAspectRatio

Field Value

AspectRatio

Properties

CommonMedicalCertificateRatios

public static IEnumerable<AspectRatio> CommonMedicalCertificateRatios { get; }

Property Value

IEnumerable<AspectRatio>

CommonPayFormRatios

public static IEnumerable<AspectRatio> CommonPayFormRatios { get; }

Property Value

IEnumerable<AspectRatio>

DefaultTextDataScannerRatio

public static AspectRatio DefaultTextDataScannerRatio { get; }

Property Value

AspectRatio

EuropeanIdentityCardRatios

public static IEnumerable<AspectRatio> EuropeanIdentityCardRatios { get; }

Property Value

IEnumerable<AspectRatio>

Height

Height component of the aspect ratio. Default is 1.0

public double Height { get; set; }

Property Value

double

Width

Width component of the aspect ratio. Default is 1.0

public double Width { get; set; }

Property Value

double

Methods

FromJson(string)

public static AspectRatio FromJson(string rawJson)

Parameters

rawJson string

Returns

AspectRatio

FromNative(AspectRatio)

public static AspectRatio FromNative(AspectRatio source)

Parameters

source AspectRatio

Returns

AspectRatio

ToNative()

public AspectRatio ToNative()

Returns

AspectRatio