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)
public bool Equals(RowInterval other)
Parameters
other
RowInterval
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
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
left
RowIntervalThe first RowInterval to compare.
right
RowIntervalThe 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
left
RowIntervalThe first RowInterval to compare.
right
RowIntervalThe second RowInterval to compare.
Returns
- bool
True if the given RowInterval-s are not equal; False otherwise.