Table of Contents

Class StaticImageFallbackSettings

Namespace
VisioForge.Core.Types.X.Sources
Assembly
VisioForge.Core.dll

Configuration for static image fallback.

public class StaticImageFallbackSettings : FallbackSwitchSettingsBase

Inheritance

Inherited Members

Constructors

StaticImageFallbackSettings()

Initializes a new instance of the VisioForge.Core.Types.X.Sources.StaticImageFallbackSettings class.

public StaticImageFallbackSettings()

Properties

BackgroundColor

Gets or sets the background color when image doesn't fill the frame. Default is Black.

public SKColor BackgroundColor { get; set; }

Property Value

SKColor

ImagePath

Gets or sets the path to the fallback image file. A missing or unreadable file is logged as a warning and the source starts anyway; the fallback is then a black frame, or none in VideoCaptureCoreX when the file is missing.

public string ImagePath { get; set; }

Property Value

string

MaintainAspectRatio

Gets or sets whether to maintain the image aspect ratio when scaling: the image fits inside the frame, with VisioForge.Core.Types.X.Sources.StaticImageFallbackSettings.BackgroundColor around it. When false, it is stretched to the frame. Default is true.

public bool MaintainAspectRatio { get; set; }

Property Value

bool

Position

Gets or sets the image alignment within the video frame. X and Y values are fractions (0.0 to 1.0): 0 places the image flush left (top), 0.5 centres it, 1 places it flush right (bottom). Default is center (0.5, 0.5).

public SKPoint Position { get; set; }

Property Value

SKPoint

ScaleToFit

Gets or sets whether to scale the image to fit the video frame. The frame takes the width and height of VisioForge.Core.Types.X.Sources.FallbackSwitchSettings.FallbackVideoCaps. When they name none, the image plays as it is, at its own size, and none of the layout settings apply. When false, the image keeps its own size and is cropped if larger than the frame. Default is true.

public bool ScaleToFit { get; set; }

Property Value

bool