Table of Contents

Class ChannelConfig

Namespace
KernSmith
Assembly
KernSmith.dll

Configures what each RGBA channel contains in the atlas texture. Matches BMFont.exe's per-channel export settings.

public sealed record ChannelConfig : IEquatable<ChannelConfig>
Inheritance
ChannelConfig
Implements
Inherited Members

Constructors

ChannelConfig(ChannelContent, ChannelContent, ChannelContent, ChannelContent, bool, bool, bool, bool)

Configures what each RGBA channel contains in the atlas texture. Matches BMFont.exe's per-channel export settings.

public ChannelConfig(ChannelContent Alpha = ChannelContent.Glyph, ChannelContent Red = ChannelContent.Glyph, ChannelContent Green = ChannelContent.Glyph, ChannelContent Blue = ChannelContent.Glyph, bool InvertAlpha = false, bool InvertRed = false, bool InvertGreen = false, bool InvertBlue = false)

Parameters

Alpha ChannelContent
Red ChannelContent
Green ChannelContent
Blue ChannelContent
InvertAlpha bool
InvertRed bool
InvertGreen bool
InvertBlue bool

Properties

Alpha

public ChannelContent Alpha { get; init; }

Property Value

ChannelContent

Blue

public ChannelContent Blue { get; init; }

Property Value

ChannelContent

Green

public ChannelContent Green { get; init; }

Property Value

ChannelContent

InvertAlpha

public bool InvertAlpha { get; init; }

Property Value

bool

InvertBlue

public bool InvertBlue { get; init; }

Property Value

bool

InvertGreen

public bool InvertGreen { get; init; }

Property Value

bool

InvertRed

public bool InvertRed { get; init; }

Property Value

bool

IsDefault

True when all channels hold glyph data with no inversion (the default configuration).

public bool IsDefault { get; }

Property Value

bool

Red

public ChannelContent Red { get; init; }

Property Value

ChannelContent