ColorLayer Struct

A layer of a color glyph of version 0 of the COLR table: the glyph whose outline it fills, and the index of its color in the palette (CpalTable.Foreground for the color of the text).

public readonly struct ColorLayer : IEquatable<ColorLayer>
Implements

Constructors

NameDescription
ColorLayer(int, int)A layer of a color glyph of version 0 of the COLR table: the glyph whose outline it fills, and the index of its color in the palette (CpalTable.Foreground for the color of the text).

ColorLayer(int, int)

A layer of a color glyph of version 0 of the COLR table: the glyph whose outline it fills, and the index of its color in the palette (CpalTable.Foreground for the color of the text).

public ColorLayer(int Glyph, int PaletteIndex)

Parameters

Glyph int
PaletteIndex int

Properties

NameDescription
Glyph
PaletteIndex
public int Glyph { get; init; }

Property value

int

No documentation is available.

PaletteIndex

ColorLayer.cs
public int PaletteIndex { get; init; }

Property value

int

No documentation is available.

Methods

NameDescription
Deconstruct(int, int)
Equals(ColorLayer)
Equals(object)
GetHashCode()
ToString()

Deconstruct(int, int)

public void Deconstruct(out int Glyph, out int PaletteIndex)

Parameters

Glyph int
PaletteIndex int

No documentation is available.

Equals overloads

Equals(ColorLayer)

public bool Equals(ColorLayer other)
Parameters
other ColorLayer
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(ColorLayer, ColorLayer)
operator !=(ColorLayer, ColorLayer)

operator ==(ColorLayer, ColorLayer)

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

Parameters

left ColorLayer
right ColorLayer

Returns

bool

No documentation is available.

operator !=(ColorLayer, ColorLayer)

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

Parameters

left ColorLayer
right ColorLayer

Returns

bool

No documentation is available.