Table of Contents

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

p1 uint

Part 1 of the ID

p2 uint

Part 2 of the ID

p3 uint

Part 3 of the ID

p4 uint

Part 4 of the ID

Fields

Zero

A profile ID with all values set to zero

public static readonly IccProfileId Zero

Field Value

IccProfileId

Properties

IsSet

Gets a value indicating whether the ID is set or just consists of zeros.

public bool IsSet { get; }

Property Value

bool

Part1

Gets the first part of the ID.

public uint Part1 { get; }

Property Value

uint

Part2

Gets the second part of the ID.

public uint Part2 { get; }

Property Value

uint

Part3

Gets the third part of the ID.

public uint Part3 { get; }

Property Value

uint

Part4

Gets the fourth part of the ID.

public uint Part4 { get; }

Property Value

uint

Methods

Equals(IccProfileId)

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

public bool Equals(IccProfileId other)

Parameters

other IccProfileId

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

Compares two IccProfileId objects for equality.

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

Parameters

left IccProfileId

The IccProfileId on the left side of the operand.

right IccProfileId

The IccProfileId on the right side of the operand.

Returns

bool

True if the left parameter is equal to the right parameter; otherwise, false.

operator !=(IccProfileId, IccProfileId)

Compares two IccProfileId objects for equality.

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

Parameters

left IccProfileId

The IccProfileId on the left side of the operand.

right IccProfileId

The IccProfileId on the right side of the operand.

Returns

bool

True if the left parameter is not equal to the right parameter; otherwise, false.