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)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(RowInterval other)

Parameters

other RowInterval

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

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.