Udostępnij za pośrednictwem


BitmapDrawable.Bitmap Property

Definition

Returns the bitmap used by this drawable to render. -or- Switch to a new Bitmap object.

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

Property Value

Attributes

Remarks

Property getter documentation:

Returns the bitmap used by this drawable to render. May be null.

Java documentation for android.graphics.drawable.BitmapDrawable.getBitmap().

Property setter documentation:

Switch to a new Bitmap object.

Java documentation for android.graphics.drawable.BitmapDrawable.setBitmap(android.graphics.Bitmap).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to