语言

BitmapDrawable.Bitmap 属性

定义

返回此可绘制器用于呈现的位图。 - 或 - 切换到新的 Bitmap 对象。

public Android.Graphics.Bitmap? Bitmap { [Android.Runtime.Register("getBitmap", "()Landroid/graphics/Bitmap;", "")] get; [Android.Runtime.Register("setBitmap", "(Landroid/graphics/Bitmap;)V", "GetSetBitmap_Landroid_graphics_Bitmap_Handler", ApiSince=31)] set; }
[<get: Android.Runtime.Register("getBitmap", "()Landroid/graphics/Bitmap;", "")>]
[<set: Android.Runtime.Register("setBitmap", "(Landroid/graphics/Bitmap;)V", "GetSetBitmap_Landroid_graphics_Bitmap_Handler", ApiSince=31)>]
member this.Bitmap : Android.Graphics.Bitmap with get, set

属性值

此可绘制的位图,如果未设置,则为 null。

特性

注解

属性 getter 文档:

返回此可绘制器用于呈现的位图。 可以为 null。

Java文档android.graphics.drawable.BitmapDrawable.getBitmap()。

属性 setter 文档:

切换到新的 Bitmap 对象。

Java文档android.graphics.drawable.BitmapDrawable.setBitmap(android.graphics.Bitmap)。

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

适用于