Class OverlayManagerShadowSettings
- Namespace
- VisioForge.Core.Types.X.VideoEffects
- Assembly
- VisioForge.Core.dll
Shadow settings for overlay manager elements.
public class OverlayManagerShadowSettingsInheritance
Inherited Members
Constructors
OverlayManagerShadowSettings()
Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.OverlayManagerShadowSettings class.
public OverlayManagerShadowSettings()OverlayManagerShadowSettings(bool, double, double, double, double, SKColor?)
Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.OverlayManagerShadowSettings class.
public OverlayManagerShadowSettings(bool enabled, double depth = 5, double direction = 45, double opacity = 0.5, double blurRadius = 2, SKColor? color = null)Parameters
enabledbool-
if set to
trueshadow is enabled. depthdouble-
The shadow depth.
directiondouble-
The shadow direction.
opacitydouble-
The shadow opacity.
blurRadiusdouble-
The shadow blur radius.
colorSKColor?-
The shadow color.
Properties
BlurRadius
Gets or sets the shadow blur radius. Range: 0 to 10.
public double BlurRadius { get; set; }Property Value
Color
Gets or sets the shadow color.
public SKColor Color { get; set; }Property Value
Depth
Gets or sets the shadow depth (offset distance). Range: 0 to 30.
public double Depth { get; set; }Property Value
Direction
Gets or sets the shadow direction in degrees. Range: 0 to 360 degrees. 0° = right, 90° = down, 180° = left, 270° = up.
public double Direction { get; set; }Property Value
Enabled
Gets or sets a value indicating whether shadow effect is enabled.
public bool Enabled { get; set; }Property Value
Opacity
Gets or sets the shadow opacity. Range: 0 to 1 (0 = transparent, 1 = opaque).
public double Opacity { get; set; }Property Value
Methods
CalculateOffset()
Calculates the shadow offset based on direction and depth. Direction mapping:
- 0° = right (positive X)
- 90° = down (positive Y)
- 180° = left (negative X)
- 270° = up (negative Y)
public (double OffsetX, double OffsetY) CalculateOffset()