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