語言

ImageDecoder.Allocator 屬性

定義

回傳像素記憶體的配置器。 -或者- 選擇像素記憶體的背面。

public Android.Graphics.ImageDecoderAllocator Allocator { [Android.Runtime.Register("getAllocator", "()I", "", ApiSince=28)] get; [Android.Runtime.Register("setAllocator", "(I)V", "", ApiSince=28)] set; }
[<get: Android.Runtime.Register("getAllocator", "()I", "", ApiSince=28)>]
[<set: Android.Runtime.Register("setAllocator", "(I)V", "", ApiSince=28)>]
member this.Allocator : Android.Graphics.ImageDecoderAllocator with get, set

屬性值

價值是以下之一:ALLOCATOR_DEFAULT ALLOCATOR_SOFTWARE ALLOCATOR_SHARED_MEMORY ALLOCATOR_HARDWARE

屬性

備註

財產取得者文件:

回傳像素記憶體的配置器。

的 android.graphics.ImageDecoder.getAllocator()Java 檔。

屬性設定文件:

選擇像素記憶體的背面。

動畫可繪圖則忽略了這一點。

如同 ImageDecoder 上的所有設定器,必須在 內 OnHeaderDecodedListener#onHeaderDecoded onHeaderDecoded調用。

的 android.graphics.ImageDecoder.setAllocator(int)Java 檔。

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

適用於