Class VideoStreamDynamicPanSettings
- Namespace
- VisioForge.Core.Types.X.VideoEffects
- Assembly
- VisioForge.Core.dll
Settings for dynamic pan (translation) transformation of the original video stream. The pan values are interpolated between start and stop values based on the timestamp. This is applied before any overlays are drawn.
public class VideoStreamDynamicPanSettingsInheritance
Inherited Members
Constructors
VideoStreamDynamicPanSettings()
Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.VideoStreamDynamicPanSettings class.
public VideoStreamDynamicPanSettings()VideoStreamDynamicPanSettings(double, double, double, double, TimeSpan, TimeSpan)
Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.VideoStreamDynamicPanSettings class with specified parameters.
public VideoStreamDynamicPanSettings(double startPanX, double startPanY, double stopPanX, double stopPanY, TimeSpan startTime, TimeSpan stopTime)Parameters
startPanXdouble-
The starting horizontal pan offset in pixels.
startPanYdouble-
The starting vertical pan offset in pixels.
stopPanXdouble-
The ending horizontal pan offset in pixels.
stopPanYdouble-
The ending vertical pan offset in pixels.
startTimeTimeSpan-
The start time.
stopTimeTimeSpan-
The stop time.
Properties
Enabled
Gets or sets a value indicating whether the dynamic pan is enabled.
public bool Enabled { get; set; }Property Value
StartPanX
Gets or sets the starting horizontal pan offset in pixels.
public double StartPanX { get; set; }Property Value
StartPanY
Gets or sets the starting vertical pan offset in pixels.
public double StartPanY { get; set; }Property Value
StartTime
Gets or sets the start time when the dynamic pan effect begins.
public TimeSpan StartTime { get; set; }Property Value
StopPanX
Gets or sets the ending horizontal pan offset in pixels.
public double StopPanX { get; set; }Property Value
StopPanY
Gets or sets the ending vertical pan offset in pixels.
public double StopPanY { get; set; }Property Value
StopTime
Gets or sets the stop time when the dynamic pan effect ends.
public TimeSpan StopTime { get; set; }Property Value
Methods
GetInterpolatedValues(TimeSpan, out double, out double)
Calculates the interpolated pan values at the specified timestamp.
public void GetInterpolatedValues(TimeSpan timestamp, out double panX, out double panY)