語言

BitmapFactory.DecodeResourceAsync 方法

定義

多載

名稱 Description
DecodeResourceAsync(Resources, Int32)

執行影像資源解碼作為任務。

DecodeResourceAsync(Resources, Int32, BitmapFactory+Options)

以提供的選項執行影像資源解碼作為任務。

DecodeResourceAsync(Resources, Int32)

執行影像資源解碼作為任務。

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeResourceAsync(Android.Content.Res.Resources? res, int id);
static member DecodeResourceAsync : Android.Content.Res.Resources * int -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

參數

res
Resources

包含圖片的資源表。

id
Int32

編碼映像的資源識別碼。

傳回

一個任務會產生解碼後的位圖,或 null 是當資源無法開啟或解碼時。

備註

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

適用於

DecodeResourceAsync(Resources, Int32, BitmapFactory+Options)

以提供的選項執行影像資源解碼作為任務。

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeResourceAsync(Android.Content.Res.Resources? res, int id, Android.Graphics.BitmapFactory.Options? opts);
static member DecodeResourceAsync : Android.Content.Res.Resources * int * Android.Graphics.BitmapFactory.Options -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

參數

res
Resources

包含圖片的資源表。

id
Int32

編碼映像的資源識別碼。

opts
BitmapFactory.Options

解碼設定和結果欄位,或 null 是預設設定。

傳回

一個任務會產生解碼後的位圖,或 null 解碼時不會產生位圖,包括僅限界的請求。

備註

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

適用於