Language

BitmapFactory.DecodeStreamAsync Method

Definition

Overloads

Name Description
DecodeStreamAsync(Stream)

Runs image decoding from a stream as a task.

DecodeStreamAsync(Stream, Rect, BitmapFactory+Options)

Runs image decoding from a stream with the supplied options as a task.

DecodeStreamAsync(Stream)

Runs image decoding from a stream as a task.

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeStreamAsync(System.IO.Stream? is);
static member DecodeStreamAsync : System.IO.Stream -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

Parameters

is
Stream

The stream containing encoded image bytes.

Returns

A task that yields the decoded bitmap, or null if the stream is null or its 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

DecodeStreamAsync(Stream, Rect, BitmapFactory+Options)

Runs image decoding from a stream with the supplied options as a task.

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeStreamAsync(System.IO.Stream? is, Android.Graphics.Rect? outPadding, Android.Graphics.BitmapFactory.Options? opts);
static member DecodeStreamAsync : System.IO.Stream * Android.Graphics.Rect * Android.Graphics.BitmapFactory.Options -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

Parameters

is
Stream

The stream containing encoded image bytes.

outPadding
Rect

An optional rectangle to receive image padding.

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