ImageDecoder.Allocator 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳像素記憶體的配置器。 -或者- 選擇像素記憶體的背面。
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 所創建與分享的作品,並依授權條款所描述的使用進行修改。