Android Guides | Samples

Android.Graphics.Drawables.Drawable.CreateFromResourceStream Method

Create a drawable from an inputstream, using the given resources and value to determine density information.

Syntax

[Android.Runtime.Register("createFromResourceStream", "(Landroid/content/res/Resources;Landroid/util/TypedValue;Ljava/io/InputStream;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;", "")]
public static Drawable CreateFromResourceStream (Resources res, TypedValue value, Stream is, String srcName)

Parameters

res
value
is
srcName

Remarks

Create a drawable from an inputstream, using the given resources and value to determine density information.

[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