Class StaticTextFallbackSettings
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
Configuration for static text fallback.
public class StaticTextFallbackSettings : FallbackSwitchSettingsBaseInheritance
Inherited Members
Constructors
StaticTextFallbackSettings()
Initializes a new instance of the VisioForge.Core.Types.X.Sources.StaticTextFallbackSettings class.
public StaticTextFallbackSettings()Properties
BackgroundColor
Gets or sets the background color. Default is Black.
public SKColor BackgroundColor { get; set; }Property Value
CenterAlign
Gets or sets whether the text is centered on VisioForge.Core.Types.X.Sources.StaticTextFallbackSettings.Position. Default is true.
public bool CenterAlign { get; set; }Property Value
FontFamily
Gets or sets the font family name. Default is "Arial".
public string FontFamily { get; set; }Property Value
FontSize
Gets or sets the font size in points, scaled with the frame width relative to 640 pixels.
On Windows, VisioForge.Core.MediaBlocks.Sources.TextOverlaySourceBlock and
FallbackTextVideoSource convert points to pixels at the DPI Windows reports to the application, so
in a DPI-aware application the text is larger with display scaling above 100%;
FallbackSwitchSourceBlock always uses 96 DPI.
Default is 24.
public float FontSize { get; set; }Property Value
FontStyle
Gets or sets the font style. Default is Normal.
public FontStyle FontStyle { get; set; }Property Value
Position
Gets or sets the text position relative to the video frame.
X and Y values are fractions of the frame (0.0 to 1.0).
With VisioForge.Core.Types.X.Sources.StaticTextFallbackSettings.CenterAlign it is the point the text is centered on; TextOverlaySourceBlock
and FallbackTextVideoSource keep the text inside the frame near an edge. Without it, those two
place the text within the frame - 0 flush left/top, 0.5 centered, 1 flush right/bottom, values
outside 0..1 clamped - and FallbackSwitchSourceBlock puts the text's top-left corner there.
Default is center (0.5, 0.5).
public SKPoint Position { get; set; }Property Value
Text
Gets or sets the fallback text to display.
public string Text { get; set; }Property Value
TextColor
Gets or sets the text color. Default is White.
public SKColor TextColor { get; set; }