BitmapFactory.DecodeResourceStreamAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
執行資源串流影像解碼,並以密度元資料作為任務。
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
一個可選的矩形,用來接收影像填充。
解碼設定和結果欄位,或 null 是預設設定。
傳回
一個任務會產生解碼後的位圖,或 null 解碼時不會產生位圖,包括僅限界的請求。
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。