Class GalleryUtilsKt
- Namespace
- IO.Scanbot.Sdk.Util
- Assembly
- BarcodeSDK.NET.Droid.dll
[Register("io/scanbot/sdk/util/GalleryUtilsKt", DoNotGenerateAcw = true)]
public sealed class GalleryUtilsKt : Object, IJavaObject, IJavaPeerable, IDisposable
- Inheritance
-
GalleryUtilsKt
- Implements
-
- Inherited Members
-
Methods
FilterContentUrisAndConvertToImageRefs(ContentResolver, IList<Uri>, BufferImageLoadOptions)
[Register("filterContentUrisAndConvertToImageRefs", "(Landroid/content/ContentResolver;Ljava/util/List;Lio/scanbot/sdk/image/BufferImageLoadOptions;)Lio/scanbot/common/Result;", "")]
public static IResult FilterContentUrisAndConvertToImageRefs(ContentResolver contentResolver, IList<Uri> uris, BufferImageLoadOptions loadOptions)
Parameters
contentResolver ContentResolver
uris IList<Uri>
loadOptions BufferImageLoadOptions
Returns
- IResult
GetUrisFromGalleryResult(Intent)
[Register("getUrisFromGalleryResult", "(Landroid/content/Intent;)Ljava/util/List;", "")]
public static IList<Uri> GetUrisFromGalleryResult(Intent data)
Parameters
data Intent
Returns
- IList<Uri>
PreprocessBitmap(Bitmap, int)
[Register("preprocessBitmap", "(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;", "")]
public static Bitmap PreprocessBitmap(Bitmap obj, int orientation)
Parameters
obj Bitmap
orientation int
Returns
- Bitmap
PreprocessImportedImage(ImageRef, int)
[Register("preprocessImportedImage", "(Lio/scanbot/sdk/image/ImageRef;I)Lio/scanbot/common/Result;", "")]
public static IResult PreprocessImportedImage(ImageRef obj, int orientation)
Parameters
obj ImageRef
orientation int
Returns
- IResult
ToBitmap(Uri, ContentResolver, IFunction1)
[Register("toBitmap", "(Landroid/net/Uri;Landroid/content/ContentResolver;Lkotlin/jvm/functions/Function1;)Landroid/graphics/Bitmap;", "")]
public static Bitmap ToBitmap(Uri obj, ContentResolver contentResolver, IFunction1 onException)
Parameters
obj Uri
contentResolver ContentResolver
onException IFunction1
Returns
- Bitmap
ToImageRef(Uri, ContentResolver, BufferImageLoadOptions)
[Register("toImageRef", "(Landroid/net/Uri;Landroid/content/ContentResolver;Lio/scanbot/sdk/image/BufferImageLoadOptions;)Lio/scanbot/common/Result;", "")]
public static IResult ToImageRef(Uri obj, ContentResolver contentResolver, BufferImageLoadOptions loadOptions)
Parameters
obj Uri
contentResolver ContentResolver
loadOptions BufferImageLoadOptions
Returns
- IResult