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
AlphaChannelContentRedChannelContentGreenChannelContentBlueChannelContentInvertAlphaboolInvertRedboolInvertGreenboolInvertBluebool
Properties
Alpha
public ChannelContent Alpha { get; init; }
Property Value
Blue
public ChannelContent Blue { get; init; }
Property Value
Green
public ChannelContent Green { get; init; }
Property Value
InvertAlpha
public bool InvertAlpha { get; init; }
Property Value
InvertBlue
public bool InvertBlue { get; init; }
Property Value
InvertGreen
public bool InvertGreen { get; init; }
Property Value
InvertRed
public bool InvertRed { get; init; }
Property Value
IsDefault
True when all channels hold glyph data with no inversion (the default configuration).
public bool IsDefault { get; }
Property Value
Red
public ChannelContent Red { get; init; }