Table of Contents

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

min int

The inclusive minimum row.

max int

The exclusive maximum row.

Properties

Height

Gets the difference (Max - Min).

public int Height { get; }

Property Value

int

Max

Gets the exclusive maximum row.

public int Max { get; }

Property Value

int

Min

Gets the inclusive minimum row.

public int Min { get; }

Property Value

int

Methods

Equals(RowInterval)

public bool Equals(RowInterval other)

Parameters

other RowInterval

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

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 RowInterval

The first RowInterval to compare.

right RowInterval

The 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 RowInterval

The first RowInterval to compare.

right RowInterval

The second RowInterval to compare.

Returns

bool

True if the given RowInterval-s are not equal; False otherwise.