From 034ee80bf98fa1fc2c6a6ffcec506195776bfe93 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 14 May 2026 22:06:13 +0000
Subject: [PATCH 1/2] Initial plan
From 251e8ff75d6bbeb24c6d47b647f56589210419a6 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Thu, 14 May 2026 22:27:17 +0000
Subject: [PATCH 2/2] Add XML documentation to AndroidBitmapInfo struct
Agent-Logs-Url: https://github.com/dotnet/android/sessions/94bad1f7-ac87-433a-87de-878933f5d1e7
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
---
.../Android.Graphics/AndroidBitmapInfo.cs | 33 +++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/src/Mono.Android/Android.Graphics/AndroidBitmapInfo.cs b/src/Mono.Android/Android.Graphics/AndroidBitmapInfo.cs
index 053b896a6ac..6898e2d8280 100644
--- a/src/Mono.Android/Android.Graphics/AndroidBitmapInfo.cs
+++ b/src/Mono.Android/Android.Graphics/AndroidBitmapInfo.cs
@@ -3,33 +3,61 @@
namespace Android.Graphics {
#if ANDROID_8
+ ///
+ /// Provides information about the pixel buffer of an Android .
+ /// This struct corresponds to the native AndroidBitmapInfo type from the Android NDK.
+ ///
+ ///
+ ///
+ /// Use this struct with to inspect the dimensions,
+ /// stride, and pixel format of a bitmap's underlying pixel buffer.
+ ///
+ ///
+ /// See the Android NDK Bitmap documentation
+ /// for more information about the native type.
+ ///
+ ///
public struct AndroidBitmapInfo : IEquatable {
internal uint width, height, stride;
internal int format;
internal uint flags;
+ ///
+ /// Gets the width of the bitmap in pixels.
+ ///
public uint Width {
get {return width;}
}
+ ///
+ /// Gets the height of the bitmap in pixels.
+ ///
public uint Height {
get {return height;}
}
+ ///
+ /// Gets the number of bytes between rows in the pixel buffer.
+ ///
public uint Stride {
get {return stride;}
}
+ ///
+ /// Gets the pixel format of the bitmap.
+ ///
public Format Format {
get {return (Format) format;}
}
+ ///
public override int GetHashCode ()
{
return (int) width ^ (int) height ^ (int) stride ^ format ^ (int) flags;
}
+ ///
public override bool Equals (object value)
{
if (!(value is AndroidBitmapInfo))
@@ -37,6 +65,11 @@ public override bool Equals (object value)
return Equals ((AndroidBitmapInfo) value);
}
+ ///
+ /// Determines whether the specified is equal to this instance.
+ ///
+ /// The to compare with this instance.
+ /// if the specified value is equal to this instance; otherwise, .
public bool Equals (AndroidBitmapInfo value)
{
return value.width == width &&