Icon.CreateWithBitmap(Bitmap) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建指向内存中位图的图标。
[Android.Runtime.Register("createWithBitmap", "(Landroid/graphics/Bitmap;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)]
public static Android.Graphics.Drawables.Icon CreateWithBitmap(Android.Graphics.Bitmap? bits);
[<Android.Runtime.Register("createWithBitmap", "(Landroid/graphics/Bitmap;)Landroid/graphics/drawable/Icon;", "", ApiSince=23)>]
static member CreateWithBitmap : Android.Graphics.Bitmap -> Android.Graphics.Drawables.Icon
参数
- bits
- Bitmap
有效 android.graphics.Bitmap 对象
返回
使用提供的位图的图标。
- 特性
注解
创建指向内存中位图的图标。
Java文档android.graphics.drawable.Icon.createWithBitmap(android.graphics.Bitmap)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。