Table of Contents

Class ImageRef

Namespace
IO.Scanbot.Sdk.Core
Assembly
BarcodeSDK.NET.Droid.dll
[Register("io/scanbot/sdk/core/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

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

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/core/ImageRef;", "")]
public static ImageRef Deserialize(string source)

Parameters

source string

Returns

ImageRef

EncodeImage(EncodeImageOptions)

[Register("encodeImage", "(Lio/scanbot/sdk/core/EncodeImageOptions;)[B", "")]
public byte[] EncodeImage(EncodeImageOptions options)

Parameters

options EncodeImageOptions

Returns

byte[]

Finalize()

[Register("finalize", "()V", "")]
public void Finalize()

FromBitmap(Bitmap, BasicImageLoadOptions)

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

Parameters

p0 Bitmap
p1 BasicImageLoadOptions

Returns

ImageRef

FromEncodedBuffer(byte[], BufferImageLoadOptions)

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

Parameters

p0 byte[]
p1 BufferImageLoadOptions

Returns

ImageRef

FromInputStream(Stream, BufferImageLoadOptions)

[Register("fromInputStream", "(Ljava/io/InputStream;Lio/scanbot/sdk/core/BufferImageLoadOptions;)Lio/scanbot/sdk/core/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/core/ImageRef;", "")]
public static ImageRef FromJson(JSONObject source)

Parameters

source JSONObject

Returns

ImageRef

FromJson(IDictionary<string, Object>)

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

Parameters

source IDictionary<string, Object>

Returns

ImageRef

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

[Register("fromNv21", "([BIILio/scanbot/sdk/core/RawImageLoadOptions;)Lio/scanbot/sdk/core/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, PathImageLoadOptions)

[Register("fromPath", "(Ljava/lang/String;Lio/scanbot/sdk/core/PathImageLoadOptions;)Lio/scanbot/sdk/core/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/core/ImageRef;", "")]
public static ImageRef FromSerializedReference(UUID uniqueId)

Parameters

uniqueId UUID

Returns

ImageRef

Hibernate()

[Register("hibernate", "()V", "")]
public void Hibernate()

Info()

[Register("info", "()Lio/scanbot/sdk/core/ImageInfo;", "")]
public ImageInfo Info()

Returns

ImageInfo

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, SaveImageOptions)

[Register("saveImage", "(Ljava/lang/String;Lio/scanbot/sdk/core/SaveImageOptions;)Z", "")]
public bool SaveImage(string path, SaveImageOptions options)

Parameters

path string
options SaveImageOptions

Returns

bool

Serialize()

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

Returns

string

SetHibernationCacheDirPath(string)

[Register("setHibernationCacheDirPath", "(Ljava/lang/String;)V", "")]
public static void SetHibernationCacheDirPath(string p0)

Parameters

p0 string

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;)V", "")]
public static void SetStorageCryptingProvider(ICoreStreamProvider p0)

Parameters

p0 ICoreStreamProvider

ToBitmap()

[Register("toBitmap", "()Landroid/graphics/Bitmap;", "")]
public Bitmap ToBitmap()

Returns

Bitmap

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

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.