Struct RowInterval
- Namespace
- SixLabors.ImageSharp.Memory
- Assembly
- SixLabors.ImageSharp.dll
Represents an interval of rows in a Rectangle and/or Buffer2D<T>
public readonly struct RowInterval : IEquatable<RowInterval>
- Implements
- Inherited Members
Remarks
Before RC1, this class might be target of API changes, use it on your own risk!
Constructors
RowInterval(int, int)
Initializes a new instance of the RowInterval struct.
public RowInterval(int min, int max)
Parameters
Properties
Height
public int Height { get; }
Property Value
Max
Gets the exclusive maximum row.
public int Max { get; }
Property Value
Min
Gets the inclusive minimum row.
public int Min { get; }
Property Value
Methods
Equals(RowInterval)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RowInterval other)
Parameters
otherRowIntervalAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
Operators
operator ==(RowInterval, RowInterval)
Returns a boolean indicating whether the given two RowInterval-s are equal.
public static bool operator ==(RowInterval left, RowInterval right)
Parameters
leftRowIntervalThe first RowInterval to compare.
rightRowIntervalThe second RowInterval to compare.
Returns
- bool
True if the given RowInterval-s are equal; False otherwise.
operator !=(RowInterval, RowInterval)
Returns a boolean indicating whether the given two RowInterval-s are not equal.
public static bool operator !=(RowInterval left, RowInterval right)
Parameters
leftRowIntervalThe first RowInterval to compare.
rightRowIntervalThe second RowInterval to compare.
Returns
- bool
True if the given RowInterval-s are not equal; False otherwise.