ImageDecoder.MemoryPolicyDefault 字段

定义

注意

This constant will be removed in the future version. Use Android.Graphics.ImageDecoderMemoryPolicy enum directly instead of this field.

对内部Bitmap使用最自然Bitmap.Config的 。

[Android.Runtime.Register("MEMORY_POLICY_DEFAULT", ApiSince=28)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderMemoryPolicy enum directly instead of this field.", true)]
public const Android.Graphics.ImageDecoderMemoryPolicy MemoryPolicyDefault = 1;
[<Android.Runtime.Register("MEMORY_POLICY_DEFAULT", ApiSince=28)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderMemoryPolicy enum directly instead of this field.", true)>]
val mutable MemoryPolicyDefault : Android.Graphics.ImageDecoderMemoryPolicy

字段值

Value = 1
属性

注解

对内部Bitmap使用最自然Bitmap.Config的 。

这是大多数应用程序和使用情况的建议默认值。 这将对编码的源使用最接近 Bitmap.Config 的源。 如果编码的源不完全匹配任何 Bitmap.Config源,将使用下一个最高质量 Bitmap.Config ,以避免图像质量丢失。

Java文档android.graphics.ImageDecoder.MEMORY_POLICY_DEFAULT

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于