Android Guides | Samples

Android.Graphics.Drawables.BitmapDrawable Constructor

Create drawable from a bitmap, setting initial target density based on the display metrics of the resources.

Syntax

[Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Landroid/graphics/Bitmap;)V", "")]
public BitmapDrawable (Resources res, Bitmap bitmap)

Parameters

res
bitmap

Remarks

Create drawable from a bitmap, setting initial target density based on the display metrics of the resources.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4