Struct GlyphColor
Provides access to the color details for the current glyph.
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public readonly struct GlyphColor
Properties
| Edit this page View SourceAlpha
Gets the alpha component
Declaration
public byte Alpha { get; }
Property Value
| Type | Description |
|---|---|
| byte |
Blue
Gets the blue component
Declaration
public byte Blue { get; }
Property Value
| Type | Description |
|---|---|
| byte |
Green
Gets the green component
Declaration
public byte Green { get; }
Property Value
| Type | Description |
|---|---|
| byte |
Red
Gets the red component
Declaration
public byte Red { get; }
Property Value
| Type | Description |
|---|---|
| byte |
Methods
| Edit this page View SourceEquals(GlyphColor)
Compares the GlyphColor for equality to this color.
Declaration
public bool Equals(GlyphColor other)
Parameters
| Type | Name | Description |
|---|---|---|
| GlyphColor | other | The other GlyphColor to compare to. |
Returns
| Type | Description |
|---|---|
| bool | True if the current color is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current instance. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(GlyphColor, GlyphColor)
Compares two GlyphColor objects for equality.
Declaration
public static bool operator ==(GlyphColor left, GlyphColor right)
Parameters
| Type | Name | Description |
|---|---|---|
| GlyphColor | left | The GlyphColor on the left side of the operand. |
| GlyphColor | right | The GlyphColor on the right side of the operand. |
Returns
| Type | Description |
|---|---|
| bool | True if the current left is equal to the |
operator !=(GlyphColor, GlyphColor)
Compares two GlyphColor objects for inequality.
Declaration
public static bool operator !=(GlyphColor left, GlyphColor right)
Parameters
| Type | Name | Description |
|---|---|---|
| GlyphColor | left | The GlyphColor on the left side of the operand. |
| GlyphColor | right | The GlyphColor on the right side of the operand. |
Returns
| Type | Description |
|---|---|
| bool | True if the current left is unequal to the |