語言

BitmapFactory.DecodeFile 方法

定義

多載

名稱 Description
DecodeFile(String)

將檔案路徑解碼成點陣圖。

DecodeFile(String, BitmapFactory+Options)

將檔案路徑解碼成點陣圖。

DecodeFile(String)

將檔案路徑解碼成點陣圖。

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

參數

pathName
String

檔案解碼的完整路徑名稱。

傳回

所產生的解碼位圖,若無法解碼則為空位圖。

屬性

備註

將檔案路徑解碼成點陣圖。 若指定的檔名為空,或無法解碼成位圖,函式會回傳 null。

Java 文件 android.graphics.BitmapFactory.decodeFile(java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

DecodeFile(String, BitmapFactory+Options)

將檔案路徑解碼成點陣圖。

[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);
[<Android.Runtime.Register("decodeFile", "(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;", "")>]
static member DecodeFile : string * Android.Graphics.BitmapFactory.Options -> Android.Graphics.Bitmap

參數

pathName
String

檔案解碼的完整路徑名稱。

opts
BitmapFactory.Options

null-ok;控制降取樣的選項,以及是要完全解碼影像,還是只回傳大小。

傳回

所產生的解碼位圖,若無法解碼則為空位圖。

屬性

備註

Java 文件 android.graphics.BitmapFactory.decodeFile(java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於