Udostępnij za pośrednictwem


MediaStore.Images.Media.GetBitmap(ContentResolver, Uri) Method

Definition

Retrieves an image for the given url as a Bitmap.

[Android.Runtime.Register("getBitmap", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/graphics/Bitmap;", "")]
public static Android.Graphics.Bitmap? GetBitmap (Android.Content.ContentResolver? cr, Android.Net.Uri? url);
[<Android.Runtime.Register("getBitmap", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/graphics/Bitmap;", "")>]
static member GetBitmap : Android.Content.ContentResolver * Android.Net.Uri -> Android.Graphics.Bitmap

Parameters

cr
ContentResolver

The content resolver to use

url
Uri

The url of the image

Returns

Attributes

Exceptions

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