Table of Contents

Class ScaleTypeTransform

Namespace
IO.Scanbot.Sdk.UI.Camera.Util
Assembly
DocumentSDK.NET.Droid.dll
[Register("io/scanbot/sdk/ui/camera/util/ScaleTypeTransform", DoNotGenerateAcw = true)]
public sealed class ScaleTypeTransform : Object, IJavaObject, IJavaPeerable, IDisposable
Inheritance
ScaleTypeTransform
Implements
Inherited Members

Properties

Instance

[Register("INSTANCE")]
public static ScaleTypeTransform Instance { get; }

Property Value

ScaleTypeTransform

Methods

GetFillScaleWithBufferAspectRatio(View, Size)

[Register("getFillScaleWithBufferAspectRatio", "(Landroid/view/View;Landroid/util/Size;)Landroid/util/Pair;", "")]
public static Pair GetFillScaleWithBufferAspectRatio(View view, Size bufferSize)

Parameters

view View
bufferSize Size

Returns

Pair

GetFitScaleWithBufferAspectRatio(View, Size)

[Register("getFitScaleWithBufferAspectRatio", "(Landroid/view/View;Landroid/util/Size;)Landroid/util/Pair;", "")]
public static Pair GetFitScaleWithBufferAspectRatio(View view, Size bufferSize)

Parameters

view View
bufferSize Size

Returns

Pair

GetOriginOfCenteredView(View, View)

[Register("getOriginOfCenteredView", "(Landroid/view/View;Landroid/view/View;)Landroid/graphics/Point;", "")]
public static Point GetOriginOfCenteredView(View container, View view)

Parameters

container View
view View

Returns

Point

GetRotationDegrees(View)

[Register("getRotationDegrees", "(Landroid/view/View;)I", "")]
public static int GetRotationDegrees(View view)

Parameters

view View

Returns

int

IsNaturalPortrait(Context, int)

[Register("isNaturalPortrait", "(Landroid/content/Context;I)Z", "")]
public static bool IsNaturalPortrait(Context context, int rotationDegrees)

Parameters

context Context
rotationDegrees int

Returns

bool

RotationDegreesFromSurfaceRotation(int)

[Register("rotationDegreesFromSurfaceRotation", "(I)I", "")]
public static int RotationDegreesFromSurfaceRotation(int rotationConstant)

Parameters

rotationConstant int

Returns

int