Language

BitmapFactory.DecodeByteArrayAsync Method

Definition

Overloads

Name Description
DecodeByteArrayAsync(Byte[], Int32, Int32)

Runs image decoding from a byte-array range as a task.

DecodeByteArrayAsync(Byte[], Int32, Int32, BitmapFactory+Options)

Runs image decoding from a byte-array range with the supplied options as a task.

DecodeByteArrayAsync(Byte[], Int32, Int32)

Runs image decoding from a byte-array range as a task.

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeByteArrayAsync(byte[]? data, int offset, int length);
static member DecodeByteArrayAsync : byte[] * int * int -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

Parameters

data
Byte[]

The array containing encoded image bytes.

offset
Int32

The index of the first encoded byte to read.

length
Int32

The number of encoded bytes to read.

Returns

A task that yields the decoded bitmap, or null if the image cannot be decoded.

Remarks

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.

Applies to

DecodeByteArrayAsync(Byte[], Int32, Int32, BitmapFactory+Options)

Runs image decoding from a byte-array range with the supplied options as a task.

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeByteArrayAsync(byte[]? data, int offset, int length, Android.Graphics.BitmapFactory.Options? opts);
static member DecodeByteArrayAsync : byte[] * int * int * Android.Graphics.BitmapFactory.Options -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

Parameters

data
Byte[]

The array containing encoded image bytes.

offset
Int32

The index of the first encoded byte to read.

length
Int32

The number of encoded bytes to read.

opts
BitmapFactory.Options

Decode settings and result fields, or null for default settings.

Returns

A task that yields the decoded bitmap, or null when decoding produces no bitmap, including a bounds-only request.

Remarks

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.

Applies to