语言

Icon.CreateWithBitmap(Bitmap) 方法

定义

创建指向内存中位图的图标。

[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)。

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

适用于