Language

ThumbnailUtils.ExtractThumbnailAsync Method

Definition

Overloads

Name Description
ExtractThumbnailAsync(Bitmap, Int32, Int32)

Runs centered thumbnail extraction as a background task.

ExtractThumbnailAsync(Bitmap, Int32, Int32, ThumnailExtractOptions)

Runs centered thumbnail extraction with the supplied options as a background task.

ExtractThumbnailAsync(Bitmap, Int32, Int32)

Runs centered thumbnail extraction as a background task.

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> ExtractThumbnailAsync(Android.Graphics.Bitmap? source, int width, int height);
static member ExtractThumbnailAsync : Android.Graphics.Bitmap * int * int -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

Parameters

source
Bitmap

The bitmap to scale and crop, or null.

width
Int32

The requested thumbnail width, in pixels.

height
Int32

The requested thumbnail height, in pixels.

Returns

A task whose result is the extracted bitmap, or null if the source is null.

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

ExtractThumbnailAsync(Bitmap, Int32, Int32, ThumnailExtractOptions)

Runs centered thumbnail extraction with the supplied options as a background task.

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> ExtractThumbnailAsync(Android.Graphics.Bitmap? source, int width, int height, Android.Media.ThumnailExtractOptions options);
static member ExtractThumbnailAsync : Android.Graphics.Bitmap * int * int * Android.Media.ThumnailExtractOptions -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

Parameters

source
Bitmap

The bitmap to scale and crop, or null.

width
Int32

The requested thumbnail width, in pixels.

height
Int32

The requested thumbnail height, in pixels.

options
ThumnailExtractOptions

Extraction flags controlling whether an input bitmap that is not used as the result is recycled.

Returns

A task whose result is the extracted bitmap, or null if the source is null.

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