语言

Icon.CreateWithAdaptiveBitmap(Bitmap) 方法

定义

创建指向内存中的位图的图标,该位图遵循由 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

参数

bits
Bitmap

有效 android.graphics.Bitmap 对象

返回

表示提供的位图作为自适应图标的图标。

特性

注解

创建指向内存中的位图的图标,该位图遵循由 AdaptiveIconDrawable定义的图标设计准则。

Java文档android.graphics.drawable.Icon.createWithAdaptiveBitmap(android.graphics.Bitmap)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于