Table of Contents

Class ImageUtils

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

Properties

Instance

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

Property Value

ImageUtils

Methods

ComputeCropRectFromAspectRatio(Size, Rational)

[Register("computeCropRectFromAspectRatio", "(Landroid/util/Size;Landroid/util/Rational;)Landroid/graphics/Rect;", "")]
public static Rect ComputeCropRectFromAspectRatio(Size sourceSize, Rational aspectRatio)

Parameters

sourceSize Size
aspectRatio Rational

Returns

Rect

CropByteArray(byte[], Rect)

[Register("cropByteArray", "([BLandroid/graphics/Rect;)[B", "")]
public static byte[] CropByteArray(byte[] data, Rect cropRect)

Parameters

data byte[]
cropRect Rect

Returns

byte[]

IsAspectRatioValid(Rational)

[Register("isAspectRatioValid", "(Landroid/util/Rational;)Z", "")]
public bool IsAspectRatioValid(Rational aspectRatio)

Parameters

aspectRatio Rational

Returns

bool

IsAspectRatioValid(Size, Rational)

[Register("isAspectRatioValid", "(Landroid/util/Size;Landroid/util/Rational;)Z", "")]
public bool IsAspectRatioValid(Size sourceSize, Rational aspectRatio)

Parameters

sourceSize Size
aspectRatio Rational

Returns

bool

ToImageRotation(int)

[Register("toImageRotation", "(I)Lio/scanbot/sdk/image/ImageRotation;", "")]
public static ImageRotation ToImageRotation(int obj)

Parameters

obj int

Returns

ImageRotation