@@ -17,13 +17,8 @@ public sealed class CaptureZone<TColor> : ICaptureZone
1717
1818 private readonly object _lock = new ( ) ;
1919
20- /// <summary>
21- /// Gets the unique id of this <see cref="CaptureZone{T}"/>.
22- /// </summary>
23- public int Id { get ; }
24-
2520 public Display Display { get ; }
26-
21+
2722 public ColorFormat ColorFormat
2823 {
2924 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
@@ -133,9 +128,8 @@ IImage ICaptureZone.Image
133128 /// <param name="unscaledWidth">The original width of the region.</param>
134129 /// <param name="unscaledHeight">The original height of the region</param>
135130 /// <param name="buffer">The buffer containing the image data.</param>
136- internal CaptureZone ( int id , Display display , int x , int y , int width , int height , int downscaleLevel , int unscaledWidth , int unscaledHeight )
131+ internal CaptureZone ( Display display , int x , int y , int width , int height , int downscaleLevel , int unscaledWidth , int unscaledHeight )
137132 {
138- this . Id = id ;
139133 this . Display = display ;
140134 this . X = x ;
141135 this . Y = y ;
@@ -195,19 +189,6 @@ internal void Resize(int width, int height, int downscaleLevel, int unscaledWidt
195189 InternalBuffer = new byte [ newBufferSize ] ;
196190 }
197191
198- /// <summary>
199- /// Determines whether this <see cref="CaptureZone{T}"/> equals the given one.
200- /// </summary>
201- /// <param name="other">The <see cref="CaptureZone{T}"/> to compare.</param>
202- /// <returns><c>true</c> if the specified object is equal to the current object; otherwise, <c>false</c>.</returns>
203- public bool Equals ( CaptureZone < TColor > other ) => Id == other . Id ;
204-
205- /// <inheritdoc />
206- public override bool Equals ( object ? obj ) => obj is CaptureZone < TColor > other && Equals ( other ) ;
207-
208- /// <inheritdoc />
209- public override int GetHashCode ( ) => Id ;
210-
211192 #endregion
212193
213194 private class UnlockDisposable : IDisposable
0 commit comments