語言

BitmapFactory.DecodeResourceStreamAsync 方法

定義

執行資源串流影像解碼,並以密度元資料作為任務。

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeResourceStreamAsync(Android.Content.Res.Resources? res, Android.Util.TypedValue? value, System.IO.Stream? is, Android.Graphics.Rect? pad, Android.Graphics.BitmapFactory.Options? opts);
static member DecodeResourceStreamAsync : Android.Content.Res.Resources * Android.Util.TypedValue * System.IO.Stream * Android.Graphics.Rect * Android.Graphics.BitmapFactory.Options -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

參數

res
Resources

可選的資源表,提供目標顯示密度。

value
TypedValue

可選的資源元資料提供影像的來源密度。

is
Stream

包含編碼影像位元組的串流。

pad
Rect

一個可選的矩形,用來接收影像填充。

opts
BitmapFactory.Options

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

傳回

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

備註

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

適用於