BitmapFactory.DecodeResourceStream Method

Definition

Decode a new Bitmap from an InputStream.

[Android.Runtime.Register("decodeResourceStream", "(Landroid/content/res/Resources;Landroid/util/TypedValue;Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
public static Android.Graphics.Bitmap? DecodeResourceStream (Android.Content.Res.Resources? res, Android.Util.TypedValue? value, System.IO.Stream? is, Android.Graphics.Rect? pad, Android.Graphics.BitmapFactory.Options? opts);
[<Android.Runtime.Register("decodeResourceStream", "(Landroid/content/res/Resources;Landroid/util/TypedValue;Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")>]
static member DecodeResourceStream : Android.Content.Res.Resources * Android.Util.TypedValue * System.IO.Stream * Android.Graphics.Rect * Android.Graphics.BitmapFactory.Options -> Android.Graphics.Bitmap

Parameters

res
Resources
value
TypedValue
is
Stream
pad
Rect

Returns

Attributes

Remarks

Java documentation for android.graphics.BitmapFactory.decodeResourceStream(android.content.res.Resources, android.util.TypedValue, java.io.InputStream, android.graphics.Rect, android.graphics.Options).

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