Table of Contents

Class ImageUtils_Droid

Namespace
ScanbotSDK.MAUI.Droid.Utils
Assembly
DocumentSDK.MAUI.dll
public class ImageUtils_Droid
Inheritance
ImageUtils_Droid
Inherited Members

Fields

LOAD_ERROR

public static string LOAD_ERROR

Field Value

string

Methods

BitmapAsNV21(Bitmap)

public static byte[] BitmapAsNV21(Bitmap image)

Parameters

image Bitmap

Returns

byte[]

Decrypt(Uri)

public static Task<ImageSource> Decrypt(Uri uri)

Parameters

uri Uri

Returns

Task<ImageSource>

Decrypt(string)

public static Task<ImageSource> Decrypt(string imagePath)

Parameters

imagePath string

Returns

Task<ImageSource>

Decrypt(string, PageFileType, bool)

public static Task<ImageSource> Decrypt(string pageId, PageFileStorage.PageFileType type, bool preview = false)

Parameters

pageId string
type PageFileStorage.PageFileType
preview bool

Returns

Task<ImageSource>

GetHandler(ImageSource)

public static IImageSourceHandler GetHandler(ImageSource source)

Parameters

source ImageSource

Returns

IImageSourceHandler

Load(Uri)

public static ImageSource Load(Uri uri)

Parameters

uri Uri

Returns

ImageSource

Load(ScanbotSDK, Uri)

public static Bitmap Load(ScanbotSDK sdk, Uri uri)

Parameters

sdk ScanbotSDK
uri Uri

Returns

Bitmap

Load(ScanbotSDK, string)

public static Bitmap Load(ScanbotSDK sdk, string imagePath)

Parameters

sdk ScanbotSDK
imagePath string

Returns

Bitmap

Load(string)

public static ImageSource Load(string path)

Parameters

path string

Returns

ImageSource

Load(string, ParametricFilter)

public static ImageSource Load(string pageId, ParametricFilter parametricFilter)

Parameters

pageId string
parametricFilter ParametricFilter

Returns

ImageSource

Load(string, PageFileType, bool)

public static ImageSource Load(string pageId, PageFileStorage.PageFileType type, bool preview = false)

Parameters

pageId string
type PageFileStorage.PageFileType
preview bool

Returns

ImageSource

Load(string, ImageFilterType)

public static ImageSource Load(string pageId, ImageFilterType type)

Parameters

pageId string
type ImageFilterType

Returns

ImageSource

ResizeImage(Bitmap, float, int)

public static Bitmap ResizeImage(Bitmap originalImage, float maxSize, int quality = 100)

Parameters

originalImage Bitmap
maxSize float
quality int

Returns

Bitmap

ResizeImage(Bitmap, float, float)

public static Bitmap ResizeImage(Bitmap originalImage, float width, float height)

Parameters

originalImage Bitmap
width float
height float

Returns

Bitmap

ResizeImage(Bitmap, float, float, int)

public static byte[] ResizeImage(Bitmap originalImage, float width, float height, int quality)

Parameters

originalImage Bitmap
width float
height float
quality int

Returns

byte[]

RotateImage(Bitmap, float)

public static Bitmap RotateImage(Bitmap image, float degrees)

Parameters

image Bitmap
degrees float

Returns

Bitmap

Save(byte[], File)

public static void Save(byte[] bytes, File file)

Parameters

bytes byte[]
file File