語言

BitmapFactory.DecodeByteArrayAsync 方法

定義

多載

名稱 Description
DecodeByteArrayAsync(Byte[], Int32, Int32)

執行一個位元組陣列範圍的影像解碼作為任務。

DecodeByteArrayAsync(Byte[], Int32, Int32, BitmapFactory+Options)

以提供的選項執行位元組陣列範圍的影像解碼作為任務。

DecodeByteArrayAsync(Byte[], Int32, Int32)

執行一個位元組陣列範圍的影像解碼作為任務。

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeByteArrayAsync(byte[]? data, int offset, int length);
static member DecodeByteArrayAsync : byte[] * int * int -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

參數

data
Byte[]

包含編碼影像位元組的陣列。

offset
Int32

第一個要讀取的編碼位元組的索引。

length
Int32

需讀取的編碼位元組數。

傳回

一個能產生解碼位圖的任務,或 null 是當影像無法解碼時。

備註

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

適用於

DecodeByteArrayAsync(Byte[], Int32, Int32, BitmapFactory+Options)

以提供的選項執行位元組陣列範圍的影像解碼作為任務。

public static System.Threading.Tasks.Task<Android.Graphics.Bitmap?> DecodeByteArrayAsync(byte[]? data, int offset, int length, Android.Graphics.BitmapFactory.Options? opts);
static member DecodeByteArrayAsync : byte[] * int * int * Android.Graphics.BitmapFactory.Options -> System.Threading.Tasks.Task<Android.Graphics.Bitmap>

參數

data
Byte[]

包含編碼影像位元組的陣列。

offset
Int32

第一個要讀取的編碼位元組的索引。

length
Int32

需讀取的編碼位元組數。

opts
BitmapFactory.Options

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

傳回

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

備註

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

適用於