|
|
|
@ -1,6 +1,5 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
#nullable disable |
|
|
|
|
|
|
|
using System.Runtime.CompilerServices; |
|
|
|
using SixLabors.ImageSharp.Memory; |
|
|
|
@ -200,7 +199,7 @@ public readonly partial struct OrderedDither : IDither, IEquatable<OrderedDither |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
public override bool Equals(object obj) |
|
|
|
public override bool Equals(object? obj) |
|
|
|
=> obj is OrderedDither dither && this.Equals(dither); |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
@ -209,8 +208,8 @@ public readonly partial struct OrderedDither : IDither, IEquatable<OrderedDither |
|
|
|
=> this.thresholdMatrix.Equals(other.thresholdMatrix) && this.modulusX == other.modulusX && this.modulusY == other.modulusY; |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
public bool Equals(IDither other) |
|
|
|
=> this.Equals((object)other); |
|
|
|
public bool Equals(IDither? other) |
|
|
|
=> this.Equals((object?)other); |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
[MethodImpl(InliningOptions.ShortMethod)] |
|
|
|
|