Class ImageRef
[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
Properties
UniqueId
public UUID UniqueId { get; }
Property Value
Methods
AcquireSerializedReference(UUID)
[Register("acquireSerializedReference", "(Ljava/util/UUID;)Z", "")]
public static bool AcquireSerializedReference(UUID p0)
Parameters
p0
UUID
Returns
Clear()
[Register("clear", "()V", "")]
public void Clear()
Close()
Closes this resource, relinquishing any underlying resources.
[Register("close", "()V", "")]
public void Close()
Remarks
.
java.lang.AutoCloseable.close()
Portions of this page are modifications based on work created and shared by the
Exceptions
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
.
android.os.Parcelable.describeContents()
Portions of this page are modifications based on work created and shared by the
Deserialize(string)
[Register("deserialize", "(Ljava/lang/String;)Lio/scanbot/sdk/core/ImageRef;", "")]
public static ImageRef Deserialize(string source)
Parameters
source
string
Returns
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
Bitmapp1
BasicImageLoadOptions
Returns
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
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
Streamoptions
BufferImageLoadOptions
Returns
FromJson(JSONObject)
[Register("fromJson", "(Lorg/json/JSONObject;)Lio/scanbot/sdk/core/ImageRef;", "")]
public static ImageRef FromJson(JSONObject source)
Parameters
source
JSONObject
Returns
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
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
intp2
intp3
RawImageLoadOptions
Returns
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
stringp1
PathImageLoadOptions
Returns
FromSerializedReference(UUID)
[Register("fromSerializedReference", "(Ljava/util/UUID;)Lio/scanbot/sdk/core/ImageRef;", "")]
public static ImageRef FromSerializedReference(UUID uniqueId)
Parameters
uniqueId
UUID
Returns
Hibernate()
[Register("hibernate", "()V", "")]
public void Hibernate()
Info()
[Register("info", "()Lio/scanbot/sdk/core/ImageInfo;", "")]
public ImageInfo Info()
Returns
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
SaveImage(string, SaveImageOptions)
[Register("saveImage", "(Ljava/lang/String;Lio/scanbot/sdk/core/SaveImageOptions;)Z", "")]
public bool SaveImage(string path, SaveImageOptions options)
Parameters
path
stringoptions
SaveImageOptions
Returns
Serialize()
[Register("serialize", "()Ljava/lang/String;", "")]
public string Serialize()
Returns
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
ToBitmap()
[Register("toBitmap", "()Landroid/graphics/Bitmap;", "")]
public Bitmap ToBitmap()
Returns
ToJson(ImageSerializationMode)
[Register("toJson", "(Lio/scanbot/sdk/common/ImageSerializationMode;)Lorg/json/JSONObject;", "")]
public JSONObject ToJson(ImageSerializationMode imageSerializationMode)
Parameters
imageSerializationMode
ImageSerializationMode
Returns
UpgradeSerializedReference(UUID)
[Register("upgradeSerializedReference", "(Ljava/util/UUID;)Z", "")]
public static bool UpgradeSerializedReference(UUID p0)
Parameters
p0
UUID
Returns
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
Parcelflags
ParcelableWriteFlagsAdditional flags about how the object should be written. May be 0 or
#PARCELABLE_WRITE_RETURN_VALUE
.
Remarks
.
android.os.Parcelable.writeToParcel(android.os.Parcel, int)
Portions of this page are modifications based on work created and shared by the