Compartilhar via


ThumbnailUtils.ExtractThumbnail Method

Definition

Overloads

ExtractThumbnail(Bitmap, Int32, Int32)

Creates a centered bitmap of the desired size.

ExtractThumbnail(Bitmap, Int32, Int32, ThumnailExtractOptions)

Creates a centered bitmap of the desired size.

ExtractThumbnail(Bitmap, Int32, Int32)

Creates a centered bitmap of the desired size.

[Android.Runtime.Register("extractThumbnail", "(Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap;", "")]
public static Android.Graphics.Bitmap? ExtractThumbnail (Android.Graphics.Bitmap? source, int width, int height);
[<Android.Runtime.Register("extractThumbnail", "(Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap;", "")>]
static member ExtractThumbnail : Android.Graphics.Bitmap * int * int -> Android.Graphics.Bitmap

Parameters

source
Bitmap

original bitmap source

width
Int32

targeted width

height
Int32

targeted height

Returns

Attributes

Remarks

Creates a centered bitmap of the desired size.

Java documentation for android.media.ThumbnailUtils.extractThumbnail(android.graphics.Bitmap, int, int).

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

ExtractThumbnail(Bitmap, Int32, Int32, ThumnailExtractOptions)

Creates a centered bitmap of the desired size.

[Android.Runtime.Register("extractThumbnail", "(Landroid/graphics/Bitmap;III)Landroid/graphics/Bitmap;", "")]
public static Android.Graphics.Bitmap? ExtractThumbnail (Android.Graphics.Bitmap? source, int width, int height, Android.Media.ThumnailExtractOptions options);
[<Android.Runtime.Register("extractThumbnail", "(Landroid/graphics/Bitmap;III)Landroid/graphics/Bitmap;", "")>]
static member ExtractThumbnail : Android.Graphics.Bitmap * int * int * Android.Media.ThumnailExtractOptions -> Android.Graphics.Bitmap

Parameters

source
Bitmap

original bitmap source

width
Int32

targeted width

height
Int32

targeted height

options
ThumnailExtractOptions

options used during thumbnail extraction

Returns

Attributes

Remarks

Creates a centered bitmap of the desired size.

Java documentation for android.media.ThumbnailUtils.extractThumbnail(android.graphics.Bitmap, int, int, int).

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