Table of Contents

Struct IccVersion

Namespace
SixLabors.ImageSharp.Metadata.Profiles.Icc
Assembly
SixLabors.ImageSharp.dll

Represents the ICC profile version number.

public readonly struct IccVersion : IEquatable<IccVersion>
Implements
Inherited Members

Constructors

IccVersion(int, int, int)

Initializes a new instance of the IccVersion struct.

public IccVersion(int major, int minor, int patch)

Parameters

major int

The major version number.

minor int

The minor version number.

patch int

The patch version number.

Properties

Major

Gets the major version number.

public int Major { get; }

Property Value

int

Minor

Gets the minor version number.

public int Minor { get; }

Property Value

int

Patch

Gets the patch number.

public int Patch { get; }

Property Value

int

Methods

Equals(IccVersion)

public bool Equals(IccVersion other)

Parameters

other IccVersion

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 ==(IccVersion, IccVersion)

Returns a value indicating whether the two values are equal.

public static bool operator ==(IccVersion left, IccVersion right)

Parameters

left IccVersion

The first value.

right IccVersion

The second value.

Returns

bool

true if the two value are equal; otherwise, false.

operator !=(IccVersion, IccVersion)

Returns a value indicating whether the two values are not equal.

public static bool operator !=(IccVersion left, IccVersion right)

Parameters

left IccVersion

The first value.

right IccVersion

The second value.

Returns

bool

true if the two value are not equal; otherwise, false.