语言

Bitmap.SameAs(Bitmap) 方法

定义

如果另一位位图具有与此位图相同的维度、配置和像素数据,则返回 true。

[Android.Runtime.Register("sameAs", "(Landroid/graphics/Bitmap;)Z", "")]
public bool SameAs(Android.Graphics.Bitmap? other);
[<Android.Runtime.Register("sameAs", "(Landroid/graphics/Bitmap;)Z", "")>]
member this.SameAs : Android.Graphics.Bitmap -> bool

参数

other
Bitmap

要与此位图进行比较的位图,或 null。

返回

true 用于同一对象或匹配可读像素和大小、像素格式、alpha、颜色空间和硬件元数据;否则 false。 不比较行填充。

特性

注解

如果另一位位图具有与此位图相同的维度、配置和像素数据,则返回 true。 如果其中任一不同,则返回 false。 如果其他为 null,则返回 false。

Java文档android.graphics.Bitmap.sameAs(android.graphics.Bitmap)。

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

适用于