Compartilhar via


Icon.CreateWithAdaptiveBitmap(Bitmap) Method

Definition

Create an Icon pointing to a bitmap in memory that follows the icon design guideline defined by AdaptiveIconDrawable.

[Android.Runtime.Register("createWithAdaptiveBitmap", "(Landroid/graphics/Bitmap;)Landroid/graphics/drawable/Icon;", "", ApiSince=26)]
public static Android.Graphics.Drawables.Icon CreateWithAdaptiveBitmap (Android.Graphics.Bitmap? bits);
[<Android.Runtime.Register("createWithAdaptiveBitmap", "(Landroid/graphics/Bitmap;)Landroid/graphics/drawable/Icon;", "", ApiSince=26)>]
static member CreateWithAdaptiveBitmap : Android.Graphics.Bitmap -> Android.Graphics.Drawables.Icon

Parameters

bits
Bitmap

A valid android.graphics.Bitmap object

Returns

Attributes

Remarks

Create an Icon pointing to a bitmap in memory that follows the icon design guideline defined by AdaptiveIconDrawable.

Java documentation for android.graphics.drawable.Icon.createWithAdaptiveBitmap(android.graphics.Bitmap).

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