Table of Contents

Class ImageRef

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

Constructors

ImageRef(UUID, bool)

[Register(".ctor", "(Ljava/util/UUID;Z)V", "")]
public ImageRef(UUID uniqueId, bool acquireStrongReference)

Parameters

uniqueId UUID
acquireStrongReference bool

Properties

UniqueId

public UUID UniqueId { get; }

Property Value

UUID

Methods

AcquireSerializedReference(UUID)

[Register("acquireSerializedReference", "(Ljava/util/UUID;)Z", "")]
public static bool AcquireSerializedReference(UUID p0)

Parameters

p0 UUID

Returns

bool

Clear()

[Register("clear", "()V", "")]
public void Clear()

Close()

Closes this resource, relinquishing any underlying resources.

[Register("close", "()V", "")]
public void Close()

Remarks

<p>Closes this resource, relinquishing any underlying resources.

This method is invoked automatically on objects managed by the try-with-resources statement.

Java documentation for

java.lang.AutoCloseable.close()
.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Exceptions

Exception

DescribeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

[Register("describeContents", "()I", "")]
public int DescribeContents()

Returns

int

a bitmask indicating the set of special object types marshaled by this Parcelable object instance.

Remarks

<p>Describe the kinds of special objects contained in this Parcelable

instance's marshaled representation. For example, if the object will include a file descriptor in the output of #writeToParcel(Parcel, int), the return value of this method must include the #CONTENTS_FILE_DESCRIPTOR bit.

Java documentation for

android.os.Parcelable.describeContents()
.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Deserialize(string)

[Register("deserialize", "(Ljava/lang/String;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef Deserialize(string source)

Parameters

source string

Returns

ImageRef

EncodeImage()

[Register("encodeImage", "()Lio/scanbot/common/Result;", "")]
public IResult EncodeImage()

Returns

IResult

EncodeImage(EncodeImageOptions)

[Register("encodeImage", "(Lio/scanbot/sdk/image/EncodeImageOptions;)Lio/scanbot/common/Result;", "")]
public IResult EncodeImage(EncodeImageOptions options)

Parameters

options EncodeImageOptions

Returns

IResult

FromBitmap(Bitmap)

[Register("fromBitmap", "(Landroid/graphics/Bitmap;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromBitmap(Bitmap bitmap)

Parameters

bitmap Bitmap

Returns

ImageRef

FromBitmap(Bitmap, BasicImageLoadOptions)

[Register("fromBitmap", "(Landroid/graphics/Bitmap;Lio/scanbot/sdk/image/BasicImageLoadOptions;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromBitmap(Bitmap p0, BasicImageLoadOptions p1)

Parameters

p0 Bitmap
p1 BasicImageLoadOptions

Returns

ImageRef

FromEncodedBuffer(ByteBuffer)

[Register("fromEncodedBuffer", "(Ljava/nio/ByteBuffer;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromEncodedBuffer(ByteBuffer encodedBuffer)

Parameters

encodedBuffer ByteBuffer

Returns

ImageRef

FromEncodedBuffer(ByteBuffer, BufferImageLoadOptions)

[Register("fromEncodedBuffer", "(Ljava/nio/ByteBuffer;Lio/scanbot/sdk/image/BufferImageLoadOptions;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromEncodedBuffer(ByteBuffer encodedBuffer, BufferImageLoadOptions options)

Parameters

encodedBuffer ByteBuffer
options BufferImageLoadOptions

Returns

ImageRef

FromEncodedBuffer(byte[])

[Register("fromEncodedBuffer", "([B)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromEncodedBuffer(byte[] encodedBuffer)

Parameters

encodedBuffer byte[]

Returns

ImageRef

FromEncodedBuffer(byte[], BufferImageLoadOptions)

[Register("fromEncodedBuffer", "([BLio/scanbot/sdk/image/BufferImageLoadOptions;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromEncodedBuffer(byte[] p0, BufferImageLoadOptions p1)

Parameters

p0 byte[]
p1 BufferImageLoadOptions

Returns

ImageRef

FromInputStream(Stream)

[Register("fromInputStream", "(Ljava/io/InputStream;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromInputStream(Stream inputStream)

Parameters

inputStream Stream

Returns

ImageRef

FromInputStream(Stream, BufferImageLoadOptions)

[Register("fromInputStream", "(Ljava/io/InputStream;Lio/scanbot/sdk/image/BufferImageLoadOptions;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromInputStream(Stream inputStream, BufferImageLoadOptions options)

Parameters

inputStream Stream
options BufferImageLoadOptions

Returns

ImageRef

FromJson(JSONObject)

[Register("fromJson", "(Lorg/json/JSONObject;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromJson(JSONObject source)

Parameters

source JSONObject

Returns

ImageRef

FromJson(IDictionary<string, Object>)

[Register("fromJson", "(Ljava/util/Map;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromJson(IDictionary<string, Object> source)

Parameters

source IDictionary<string, Object>

Returns

ImageRef

FromNv21(byte[], int, int)

[Register("fromNv21", "([BII)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromNv21(byte[] nv21, int width, int height)

Parameters

nv21 byte[]
width int
height int

Returns

ImageRef

FromNv21(byte[], int, int, RawImageLoadOptions)

[Register("fromNv21", "([BIILio/scanbot/sdk/image/RawImageLoadOptions;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromNv21(byte[] p0, int p1, int p2, RawImageLoadOptions p3)

Parameters

p0 byte[]
p1 int
p2 int
p3 RawImageLoadOptions

Returns

ImageRef

FromPath(string)

[Register("fromPath", "(Ljava/lang/String;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromPath(string path)

Parameters

path string

Returns

ImageRef

FromPath(string, PathImageLoadOptions)

[Register("fromPath", "(Ljava/lang/String;Lio/scanbot/sdk/image/PathImageLoadOptions;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromPath(string p0, PathImageLoadOptions p1)

Parameters

p0 string
p1 PathImageLoadOptions

Returns

ImageRef

FromSerializedReference(UUID)

[Register("fromSerializedReference", "(Ljava/util/UUID;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromSerializedReference(UUID uniqueId)

Parameters

uniqueId UUID

Returns

ImageRef

FromYUV420(ByteBuffer, int, int, ByteBuffer, int, int, ByteBuffer, int, int, int, int)

[Register("fromYUV420", "(Ljava/nio/ByteBuffer;IILjava/nio/ByteBuffer;IILjava/nio/ByteBuffer;IIII)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromYUV420(ByteBuffer yPlaneBuffer, int yPlaneRowStride, int yPlanePixelStride, ByteBuffer uPlaneBuffer, int uPlaneRowStride, int uPlanePixelStride, ByteBuffer vPlaneBuffer, int vPlaneRowStride, int vPlanePixelStride, int width, int height)

Parameters

yPlaneBuffer ByteBuffer
yPlaneRowStride int
yPlanePixelStride int
uPlaneBuffer ByteBuffer
uPlaneRowStride int
uPlanePixelStride int
vPlaneBuffer ByteBuffer
vPlaneRowStride int
vPlanePixelStride int
width int
height int

Returns

ImageRef

FromYUV420(ByteBuffer, int, int, ByteBuffer, int, int, ByteBuffer, int, int, int, int, RawImageLoadOptions)

[Register("fromYUV420", "(Ljava/nio/ByteBuffer;IILjava/nio/ByteBuffer;IILjava/nio/ByteBuffer;IIIILio/scanbot/sdk/image/RawImageLoadOptions;)Lio/scanbot/sdk/image/ImageRef;", "")]
public static ImageRef FromYUV420(ByteBuffer yPlaneBuffer, int yPlaneRowStride, int yPlanePixelStride, ByteBuffer uPlaneBuffer, int uPlaneRowStride, int uPlanePixelStride, ByteBuffer vPlaneBuffer, int vPlaneRowStride, int vPlanePixelStride, int width, int height, RawImageLoadOptions options)

Parameters

yPlaneBuffer ByteBuffer
yPlaneRowStride int
yPlanePixelStride int
uPlaneBuffer ByteBuffer
uPlaneRowStride int
uPlanePixelStride int
vPlaneBuffer ByteBuffer
vPlaneRowStride int
vPlanePixelStride int
width int
height int
options RawImageLoadOptions

Returns

ImageRef

Hibernate()

[Register("hibernate", "()Lio/scanbot/common/Result;", "")]
public IResult Hibernate()

Returns

IResult

Info()

[Register("info", "()Lio/scanbot/common/Result;", "")]
public IResult Info()

Returns

IResult

RegisterPlatformImageDecoders()

[Register("registerPlatformImageDecoders", "()V", "")]
public static void RegisterPlatformImageDecoders()

ReleaseAllImages()

[Register("releaseAllImages", "()V", "")]
public static void ReleaseAllImages()

ReleaseStrongReference(UUID)

[Register("releaseStrongReference", "(Ljava/util/UUID;)Z", "")]
public static bool ReleaseStrongReference(UUID p0)

Parameters

p0 UUID

Returns

bool

SaveImage(string)

[Register("saveImage", "(Ljava/lang/String;)Lio/scanbot/common/Result;", "")]
public IResult SaveImage(string path)

Parameters

path string

Returns

IResult

SaveImage(string, SaveImageOptions)

[Register("saveImage", "(Ljava/lang/String;Lio/scanbot/sdk/image/SaveImageOptions;)Lio/scanbot/common/Result;", "")]
public IResult SaveImage(string path, SaveImageOptions options)

Parameters

path string
options SaveImageOptions

Returns

IResult

Serialize()

[Register("serialize", "()Ljava/lang/String;", "")]
public string Serialize()

Returns

string

SetHibernationCacheDirPath(string)

[Register("setHibernationCacheDirPath", "(Ljava/lang/String;)Lio/scanbot/common/Result;", "")]
public static IResult SetHibernationCacheDirPath(string p0)

Parameters

p0 string

Returns

IResult

SetHibernationJpegQuality(int)

[Register("setHibernationJpegQuality", "(I)V", "")]
public static void SetHibernationJpegQuality(int p0)

Parameters

p0 int

SetStorageCryptingProvider(ICoreStreamProvider)

[Register("setStorageCryptingProvider", "(Lio/scanbot/sdk/persistence/fileio/CoreStreamProvider;)Lio/scanbot/common/Result;", "")]
public static IResult SetStorageCryptingProvider(ICoreStreamProvider p0)

Parameters

p0 ICoreStreamProvider

Returns

IResult

ToBitmap()

[Register("toBitmap", "()Lio/scanbot/common/Result;", "")]
public IResult ToBitmap()

Returns

IResult

ToJson(ImageSerializationMode)

[Register("toJson", "(Lio/scanbot/sdk/common/ImageSerializationMode;)Lorg/json/JSONObject;", "")]
public JSONObject ToJson(ImageSerializationMode imageSerializationMode)

Parameters

imageSerializationMode ImageSerializationMode

Returns

JSONObject

UpgradeSerializedReference(UUID)

[Register("upgradeSerializedReference", "(Ljava/util/UUID;)Z", "")]
public static bool UpgradeSerializedReference(UUID p0)

Parameters

p0 UUID

Returns

bool

WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

[Register("writeToParcel", "(Landroid/os/Parcel;I)V", "")]
public void WriteToParcel(Parcel parcel, ParcelableWriteFlags flags)

Parameters

parcel Parcel
flags ParcelableWriteFlags

Additional flags about how the object should be written. May be 0 or #PARCELABLE_WRITE_RETURN_VALUE.

Remarks

Flatten this object in to a Parcel.

Java documentation for

android.os.Parcelable.writeToParcel(android.os.Parcel, int)
.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.