Icon.CreateWithAdaptiveBitmap(Bitmap) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建指向内存中的位图的图标,该位图遵循由 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。