MediaStore.Images.Media.InsertImage Method

Definition

Overloads

InsertImage(ContentResolver, Bitmap, String, String)

Insert an image and create a thumbnail for it.

InsertImage(ContentResolver, String, String, String)

Insert an image and create a thumbnail for it.

InsertImage(ContentResolver, Bitmap, String, String)

Insert an image and create a thumbnail for it.

[Android.Runtime.Register("insertImage", "(Landroid/content/ContentResolver;Landroid/graphics/Bitmap;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? InsertImage (Android.Content.ContentResolver? cr, Android.Graphics.Bitmap? source, string? title, string? description);
[<Android.Runtime.Register("insertImage", "(Landroid/content/ContentResolver;Landroid/graphics/Bitmap;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member InsertImage : Android.Content.ContentResolver * Android.Graphics.Bitmap * string * string -> string

Parameters

cr
ContentResolver

The content resolver to use

source
Bitmap

The stream to use for the image

title
String

The name of the image

description
String

The description of the image

Returns

Attributes

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

InsertImage(ContentResolver, String, String, String)

Insert an image and create a thumbnail for it.

[Android.Runtime.Register("insertImage", "(Landroid/content/ContentResolver;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? InsertImage (Android.Content.ContentResolver? cr, string? imagePath, string? name, string? description);
[<Android.Runtime.Register("insertImage", "(Landroid/content/ContentResolver;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "")>]
static member InsertImage : Android.Content.ContentResolver * string * string * string -> string

Parameters

cr
ContentResolver

The content resolver to use

imagePath
String

The path to the image to insert

name
String

The name of the image

description
String

The description 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