Class VideoEffectFadeIn
- Namespace
- VisioForge.Core.Types.VideoEffects
- Assembly
- VisioForge.Core.dll
Represents a fade-in transition effect that gradually transitions from black to full video visibility.
public class VideoEffectFadeIn : VideoEffect, IVideoEffectFadeIn, IVideoEffectInheritance
Implements
Inherited Members
Remarks
The fade-in effect creates a smooth transition where the video content gradually becomes visible, starting from complete black (or transparency) and progressing to full opacity. The transition occurs over the time period defined by VisioForge.Core.Types.VideoEffects.VideoEffect.StartTime and VisioForge.Core.Types.VideoEffects.VideoEffect.StopTime.
Common applications:
- Video opening sequences
- Scene transitions from black
- Revealing content gradually
- Professional video intros
- Soft entry into new scenes or chapters
The fade-in effect is typically applied at the beginning of a video or scene. The duration of the fade is controlled by the difference between StartTime and StopTime.
For opposite effect (fading to black), use VisioForge.Core.Types.VideoEffects.VideoEffectFadeOut. For more control over darkness/brightness fading, use VisioForge.Core.Types.VideoEffects.VideoEffectDarkness with ValueStop.
Constructors
VideoEffectFadeIn(bool, string, TimeSpan, TimeSpan)
Initializes a new instance of the VisioForge.Core.Types.VideoEffects.VideoEffectFadeIn class with specified parameters.
public VideoEffectFadeIn(bool enabled, string name = "FadeIn", TimeSpan startTime = default, TimeSpan stopTime = default)Parameters
enabledbool-
trueto enable the effect immediately;falseto create the effect in a disabled state. namestring-
An optional name identifier for this effect instance. Default is "FadeIn".
startTimeTimeSpan-
The time at which the fade-in should begin. Typically set to the start of a video or scene. Default is Zero (from beginning).
stopTimeTimeSpan-
The time at which the fade-in should complete (full visibility reached). Required to define fade duration. The fade duration is (stopTime - startTime).
Remarks
The fade-in effect requires both startTime and stopTime
to be properly set to define the fade duration. Setting both to zero will result in no visible effect.
Typical fade durations range from 1-3 seconds for subtle transitions, up to 5+ seconds for more dramatic reveals.
Methods
GetEffectType()
Gets the specific type of this video effect.
public VideoEffectType GetEffectType()Returns
- VideoEffectType
-
Returns VisioForge.Core.Types.VideoEffects.VideoEffectType.FadeIn to identify this as a fade-in transition effect.
Remarks
This method is used by the video processing pipeline to route the effect to the appropriate fade transition processor.