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)

public bool Equals(IccProfileId other)

Parameters

other IccProfileId

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 ==(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.