• 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
      • GlyphLayoutMode
      • GlyphMetrics
      • GlyphMissingException
      • GlyphRendererParameters
      • GlyphType
      • HintingMode
      • HorizontalAlignment
      • HorizontalMetrics
      • IColorGlyphRenderer
      • IFontCollection
      • IGlyphRenderer
      • IGlyphRendererExtensions
      • IMetricsHeader
      • IReadOnlyFontCollection
      • IReadOnlySystemFontCollection
      • InvalidFontFileException
      • InvalidFontTableException
      • KerningMode
      • LayoutMode
      • LayoutModeExtensions
      • MissingFontTableException
      • SystemFonts
      • TextAlignment
      • TextAttributes
      • TextDecorations
      • TextDirection
      • TextJustification
      • TextMeasurer
      • TextOptions
      • TextRenderer
      • TextRun
      • VerticalAlignment
      • VerticalMetrics
      • WordBreaking
    • SixLabors.Fonts.Tables.AdvancedTypographic
      • FeatureTags
      • GlyphClassDef
      • Tag
    • SixLabors.Fonts.Tables.TrueType
      • TrueTypeGlyphMetrics
    • SixLabors.Fonts.Unicode
      • ArabicJoiningClass
      • ArabicJoiningGroup
      • ArabicJoiningType
      • BidiCharacterType
      • BidiClass
      • BidiPairedBracketType
      • CodePoint
      • GraphemeClusterClass
      • IndicPositionalCategory
      • IndicSyllabicCategory
      • LineBreakClass
      • MemoryExtensions
      • ScriptClass
      • SpanCodePointEnumerator
      • SpanGraphemeEnumerator
      • VerticalOrientationType
    • 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

    | Edit this page View Source

    Alpha

    Gets the alpha component

    Declaration
    public byte Alpha { get; }
    Property Value
    Type Description
    byte
    | Edit this page View Source

    Blue

    Gets the blue component

    Declaration
    public byte Blue { get; }
    Property Value
    Type Description
    byte
    | Edit this page View Source

    Green

    Gets the green component

    Declaration
    public byte Green { get; }
    Property Value
    Type Description
    byte
    | Edit this page View Source

    Red

    Gets the red component

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

    Methods

    | Edit this page View Source

    Equals(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 other parameter; otherwise, false.

    | Edit this page View Source

    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 obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    ValueType.Equals(object)
    | Edit this page View Source

    GetHashCode()

    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
    ValueType.GetHashCode()

    Operators

    | Edit this page View Source

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

    | Edit this page View Source

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

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX