Android Guides | Samples

Android.Graphics.Drawables.BitmapDrawable Constructor

Create a drawable by opening a given file path and decoding the bitmap.

Syntax

[Android.Runtime.Register(".ctor", "(Landroid/content/res/Resources;Ljava/lang/String;)V", "")]
public BitmapDrawable (Resources res, String filepath)

Parameters

res
filepath

Remarks

Create a drawable by opening a given file path and decoding the bitmap.

[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 5