Struct GlyphColor
Provides access to the the color details for the current glyph.
Inherited Members
Namespace: SixLabors.Fonts
Assembly: SixLabors.Fonts.dll
Syntax
public readonly struct GlyphColor
Properties
| Improve this Doc View SourceAlpha
Gets the alpha component
Declaration
public readonly byte Alpha { get; }
Property Value
Type | Description |
---|---|
Byte |
Blue
Gets the blue component
Declaration
public readonly byte Blue { get; }
Property Value
Type | Description |
---|---|
Byte |
Green
Gets the green component
Declaration
public readonly byte Green { get; }
Property Value
Type | Description |
---|---|
Byte |
Red
Gets the red component
Declaration
public readonly byte Red { get; }
Property Value
Type | Description |
---|---|
Byte |
Methods
| Improve this Doc View SourceEquals(GlyphColor)
Compares the GlyphColor for equality to this color.
Declaration
public readonly bool Equals(GlyphColor other)
Parameters
Type | Name | Description |
---|---|---|
GlyphColor | other | The other GlyphColor to compair to. |
Returns
Type | Description |
---|---|
Boolean | True if the current color is equal to the |
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
Operators
| Improve this Doc View SourceEquality(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 |
---|---|
Boolean | True if the current left is equal to the |
Inequality(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 |
---|---|
Boolean | True if the current left is unequal to the |