Struct IccProfileId
- Namespace
- SixLabors.ImageSharp.Metadata.Profiles.Icc
- Assembly
- SixLabors.ImageSharp.dll
ICC Profile ID
public readonly struct IccProfileId : IEquatable<IccProfileId>
- Implements
- Inherited Members
Constructors
IccProfileId(uint, uint, uint, uint)
Initializes a new instance of the IccProfileId struct.
public IccProfileId(uint p1, uint p2, uint p3, uint p4)
Parameters
Fields
Zero
A profile ID with all values set to zero
public static readonly IccProfileId Zero
Field Value
Properties
IsSet
Gets a value indicating whether the ID is set or just consists of zeros.
public bool IsSet { get; }
Property Value
Part1
Gets the first part of the ID.
public uint Part1 { get; }
Property Value
Part2
Gets the second part of the ID.
public uint Part2 { get; }
Property Value
Part3
Gets the third part of the ID.
public uint Part3 { get; }
Property Value
Part4
Gets the fourth part of the ID.
public uint Part4 { get; }
Property Value
Methods
Equals(IccProfileId)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IccProfileId other)
Parameters
otherIccProfileIdAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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 ==(IccProfileId, IccProfileId)
Compares two IccProfileId objects for equality.
public static bool operator ==(IccProfileId left, IccProfileId right)
Parameters
leftIccProfileIdThe IccProfileId on the left side of the operand.
rightIccProfileIdThe IccProfileId on the right side of the operand.
Returns
- bool
True if the
leftparameter is equal to therightparameter; otherwise, false.
operator !=(IccProfileId, IccProfileId)
Compares two IccProfileId objects for equality.
public static bool operator !=(IccProfileId left, IccProfileId right)
Parameters
leftIccProfileIdThe IccProfileId on the left side of the operand.
rightIccProfileIdThe IccProfileId on the right side of the operand.
Returns
- bool
True if the
leftparameter is not equal to therightparameter; otherwise, false.