Table of Contents

Class OverlayManagerShadowSettings

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

Shadow settings for overlay manager elements.

public class OverlayManagerShadowSettings

Inheritance

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

enabled bool

if set to true shadow is enabled.

depth double

The shadow depth.

direction double

The shadow direction.

opacity double

The shadow opacity.

blurRadius double

The shadow blur radius.

color SKColor?

The shadow color.

Properties

BlurRadius

Gets or sets the shadow blur radius. Range: 0 to 10.

public double BlurRadius { get; set; }

Property Value

double

Color

Gets or sets the shadow color.

public SKColor Color { get; set; }

Property Value

SKColor

Depth

Gets or sets the shadow depth (offset distance). Range: 0 to 30.

public double Depth { get; set; }

Property Value

double

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

double

Enabled

Gets or sets a value indicating whether shadow effect is enabled.

public bool Enabled { get; set; }

Property Value

bool

Opacity

Gets or sets the shadow opacity. Range: 0 to 1 (0 = transparent, 1 = opaque).

public double Opacity { get; set; }

Property Value

double

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()

Returns

(double OffsetX, double OffsetY)

A tuple containing the X and Y offset values.