Partager via


Bitmap.SameAs(Bitmap) Method

Definition

Given another bitmap, return true if it has the same dimensions, config, and pixel data as this bitmap.

[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

Parameters

other
Bitmap

Returns

Attributes

Remarks

Given another bitmap, return true if it has the same dimensions, config, and pixel data as this bitmap. If any of those differ, return false. If other is null, return false.

Java documentation for android.graphics.Bitmap.sameAs(android.graphics.Bitmap).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to