• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.Fonts
      • ColorFontSupport
      • Font
      • FontCollection
      • FontCollectionExtensions
      • FontDescription
      • FontException
      • FontFamily
      • FontFamilyNotFoundException
      • FontMetrics
      • FontRectangle
      • FontStyle
      • Glyph
      • GlyphBounds
      • GlyphColor
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphDecorationRenderer
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • InvalidFontFileException
      • InvalidFontTableException
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • KerningMode
      • LayoutMode
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Tables.TrueType.Glyphs
      • GlyphOutline
    • SixLabors.Fonts.Unicode
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • JoiningClass
      • JoiningGroup
      • JoiningType
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
    • SixLabors.Fonts.WellKnownIds
      • KnownNameIds

    Struct GlyphColor

    Provides access to the color details for the current glyph.

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace: SixLabors.Fonts
    Assembly: SixLabors.Fonts.dll
    Syntax
    public readonly struct GlyphColor

    Properties

    | Improve this Doc View Source

    Alpha

    Gets the alpha component

    Declaration
    public readonly byte Alpha { get; }
    Property Value
    Type Description
    Byte
    | Improve this Doc View Source

    Blue

    Gets the blue component

    Declaration
    public readonly byte Blue { get; }
    Property Value
    Type Description
    Byte
    | Improve this Doc View Source

    Green

    Gets the green component

    Declaration
    public readonly byte Green { get; }
    Property Value
    Type Description
    Byte
    | Improve this Doc View Source

    Red

    Gets the red component

    Declaration
    public readonly byte Red { get; }
    Property Value
    Type Description
    Byte

    Methods

    | Improve this Doc View Source

    Equals(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 compare to.

    Returns
    Type Description
    Boolean

    True if the current color is equal to the other parameter; otherwise, false.

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override readonly bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override readonly int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Operators

    | Improve this Doc View Source

    Equality(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 right parameter; otherwise, false.

    | Improve this Doc View Source

    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 right parameter; otherwise, false.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX