BitmapFactory.DecodeFile BitmapFactory.DecodeFile Method

Definition

Overloads

DecodeFile(String) DecodeFile(String)

Decode a file path into a bitmap.

DecodeFile(String, BitmapFactory+Options) DecodeFile(String, BitmapFactory+Options)

Decode a file path into a bitmap.

DecodeFile(String) DecodeFile(String)

Decode a file path into a bitmap.

[Android.Runtime.Register("decodeFile", "(Ljava/lang/String;)Landroid/graphics/Bitmap;", "")]
public static Android.Graphics.Bitmap DecodeFile (string pathName);
static member DecodeFile : string -> Android.Graphics.Bitmap

Parameters

pathName
String String

complete path name for the file to be decoded.

Returns

Remarks

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.

DecodeFile(String, BitmapFactory+Options) DecodeFile(String, BitmapFactory+Options)

Decode a file path into a bitmap.

[Android.Runtime.Register("decodeFile", "(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")]
public static Android.Graphics.Bitmap DecodeFile (string pathName, Android.Graphics.BitmapFactory.Options opts);
static member DecodeFile : string * Android.Graphics.BitmapFactory.Options -> Android.Graphics.Bitmap

Parameters

pathName
String String

complete path name for the file to be decoded.

opts
BitmapFactory.Options BitmapFactory.Options

null-ok; Options that control downsampling and whether the image should be completely decoded, or just is size returned.

Returns

Remarks

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