語言

ImageDecoder.DecodeBitmap 方法

定義

多載

名稱 Description
DecodeBitmap(ImageDecoder+Source)

參見 #decodeBitmap(Source, OnHeaderDecodedListener)。

DecodeBitmap(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener)

參見 #decodeBitmap(Source, OnHeaderDecodedListener)。

DecodeBitmap(ImageDecoder+Source)

參見 #decodeBitmap(Source, OnHeaderDecodedListener)。

[Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/Bitmap;", "", ApiSince=28)]
public static Android.Graphics.Bitmap DecodeBitmap(Android.Graphics.ImageDecoder.Source src);
[<Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;)Landroid/graphics/Bitmap;", "", ApiSince=28)>]
static member DecodeBitmap : Android.Graphics.ImageDecoder.Source -> Android.Graphics.Bitmap

參數

src
ImageDecoder.Source

代表編碼影像。 這個值不可能為零值。

傳回

包含影像的點陣圖。 這個值不可能為零值。

屬性

備註

從來源建立點陣圖。

由於沒有 OnHeaderDecodedListener,預設設定將被使用。 若要更改任何設定,請呼叫 decodeBitmap(Source,OnHeaderDecodedListener)。

Android 參考資料。android.graphics.ImageDecoder.decodeBitmap

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

適用於

DecodeBitmap(ImageDecoder+Source, ImageDecoder+IOnHeaderDecodedListener)

參見 #decodeBitmap(Source, OnHeaderDecodedListener)。

[Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/Bitmap;", "", ApiSince=28)]
public static Android.Graphics.Bitmap DecodeBitmap(Android.Graphics.ImageDecoder.Source src, Android.Graphics.ImageDecoder.IOnHeaderDecodedListener listener);
[<Android.Runtime.Register("decodeBitmap", "(Landroid/graphics/ImageDecoder$Source;Landroid/graphics/ImageDecoder$OnHeaderDecodedListener;)Landroid/graphics/Bitmap;", "", ApiSince=28)>]
static member DecodeBitmap : Android.Graphics.ImageDecoder.Source * Android.Graphics.ImageDecoder.IOnHeaderDecodedListener -> Android.Graphics.Bitmap

參數

src
ImageDecoder.Source

代表編碼影像。 這個值不可能為零值。

listener
ImageDecoder.IOnHeaderDecodedListener

用於學習 ImageInfo 以及更改 ImageDecoder 的預設設定。 此方法會與 decodeBitmap 在同一執行緒中被呼叫,之後該方法才會回傳。 這是更改任何預設設定所必須的。 這個值不可能為零值。

傳回

包含影像的點陣圖。 這個值不可能為零值。

屬性

備註

從來源建立點陣圖。 此方法可能需要數秒鐘完成,因此應僅從工作執行緒呼叫。

Android 參考資料。android.graphics.ImageDecoder.decodeBitmap

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

適用於