Language

BitmapFactory.DecodeFileDescriptorAsync Method

Definition

Overloads

Name Description
DecodeFileDescriptorAsync(FileDescriptor, Rect, BitmapFactory+Options)

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

DecodeFileDescriptorAsync(FileDescriptor)

Runs image decoding from a file descriptor as a task.

DecodeFileDescriptorAsync(FileDescriptor, Rect, BitmapFactory+Options)

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

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeFileDescriptorAsync(Java.IO.FileDescriptor? fd, Android.Graphics.Rect? outPadding, Android.Graphics.BitmapFactory.Options? opts);
static member DecodeFileDescriptorAsync : Java.IO.FileDescriptor * Android.Graphics.Rect * Android.Graphics.BitmapFactory.Options -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

Parameters

fd
FileDescriptor

The file descriptor supplying encoded image data.

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

DecodeFileDescriptorAsync(FileDescriptor)

Runs image decoding from a file descriptor as a task.

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeFileDescriptorAsync(Java.IO.FileDescriptor? fd);
static member DecodeFileDescriptorAsync : Java.IO.FileDescriptor -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

Parameters

fd
FileDescriptor

The file descriptor supplying encoded image data.

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