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
intThe major version number.
minor
intThe minor version number.
patch
intThe patch version number.
Properties
Major
Gets the major version number.
public int Major { get; }
Property Value
Minor
Gets the minor version number.
public int Minor { get; }
Property Value
Patch
Gets the patch number.
public int Patch { get; }
Property Value
Methods
Equals(IccVersion)
public bool Equals(IccVersion other)
Parameters
other
IccVersion
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(IccVersion, IccVersion)
Returns a value indicating whether the two values are equal.
public static bool operator ==(IccVersion left, IccVersion right)
Parameters
left
IccVersionThe first value.
right
IccVersionThe second value.
Returns
operator !=(IccVersion, IccVersion)
Returns a value indicating whether the two values are not equal.
public static bool operator !=(IccVersion left, IccVersion right)
Parameters
left
IccVersionThe first value.
right
IccVersionThe second value.