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
| Improve this Doc View SourceRowInterval(Int32, Int32)
Initializes a new instance of the RowInterval struct.
Declaration
public RowInterval(int min, int max)
Parameters
Type | Name | Description |
---|---|---|
Int32 | min | The inclusive minimum row. |
Int32 | max | The exclusive maximum row. |
Properties
| Improve this Doc View SourceHeight
Declaration
public readonly int Height { get; }
Property Value
Type | Description |
---|---|
Int32 |
Max
Gets the exclusive maximum row.
Declaration
public readonly int Max { get; }
Property Value
Type | Description |
---|---|
Int32 |
Min
Gets the inclusive minimum row.
Declaration
public readonly int Min { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceEquals(RowInterval)
Declaration
public readonly bool Equals(RowInterval other)
Parameters
Type | Name | Description |
---|---|---|
RowInterval | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
Operators
| Improve this Doc View SourceEquality(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 |
---|---|
Boolean | True if the given RowInterval-s are equal; False otherwise. |
Inequality(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 |
---|---|
Boolean | True if the given RowInterval-s are not equal; False otherwise. |