语言

BitmapFactory.Options.InJustDecodeBounds 属性

定义

如果设置为 true,解码器将返回 null(无位图),但仍 out... 会设置字段,允许调用方查询位图,而无需为其像素分配内存。

[Android.Runtime.Register("inJustDecodeBounds")]
public bool InJustDecodeBounds { get; set; }
[<Android.Runtime.Register("inJustDecodeBounds")>]
member this.InJustDecodeBounds : bool with get, set

属性值

是否在不生成像素位图的情况下报告图像信息。

特性

注解

如果设置为 true,解码器将返回 null(无位图),但仍 out... 会设置字段,允许调用方查询位图,而无需为其像素分配内存。

Java文档android.graphics.BitmapFactory.Options.inJustDecodeBounds。

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

适用于