Table of Contents

Class Layer

Namespace
VAST.Image.Mixing
Assembly
VAST.Image.dll

Defines a video compositing layer with position, crop, rotation, opacity, and visual effects settings. Higher layers overlap lower layers in z-order.

public class Layer
Inheritance
Layer
Inherited Members

Constructors

Layer()

public Layer()

Properties

BlurSize

Gets or sets blur to apply to source images. If value is 0 then blur is disabled.

public int? BlurSize { get; set; }

Property Value

int?

BrightnessAdjustment

Gets or sets brightness adjustment to apply to source images. Accepted values are in -10..10 range. If value is 0 then brightness adjustment is disabled.

public float? BrightnessAdjustment { get; set; }

Property Value

float?

ChromaKeyColor

Gets or sets color to be used to apply chroma key to source. The format is a hex string. Accepted formats: #ARGB, #RGB, ARGB, RGB. Examples: #FFFFFFFF, #FFFF00, FFFF0000, FF0000. Default value is null, i.e. chroma key is disabled.

public string ChromaKeyColor { get; set; }

Property Value

string

ChromaKeySmoothing

Gets or sets chroma key smoothing. The recommended value range is 0.0..0.1 but it depends on particular setup. Makes sense only if chroma key is enabled. When not specified the default value is 0.05.

public float? ChromaKeySmoothing { get; set; }

Property Value

float?

ChromaKeyThreshold

Gets or sets chroma key threshold. The recommended value range is 0.02..0.12 but it depends on particular setup. Makes sense only if chroma key is enabled. When not specified the default value is 0.1.

public float? ChromaKeyThreshold { get; set; }

Property Value

float?

ContrastAdjustment

Gets or sets contrast adjustment to apply to source images Accepted values are in -10..10 range. If value is 0 then contrast adjustment is disabled.

public float? ContrastAdjustment { get; set; }

Property Value

float?

Crop

Gets or sets the crop region to apply to source content (left, top, right, bottom margins).

public Rect Crop { get; set; }

Property Value

Rect

FadeInMsec

Gets or sets the fade-in duration in milliseconds when the layer becomes visible.

public int? FadeInMsec { get; set; }

Property Value

int?

FadeOutMsec

Gets or sets the fade-out duration in milliseconds when the layer becomes hidden.

public int? FadeOutMsec { get; set; }

Property Value

int?

FillColor

Gets or sets the fill color in hex format (#AARRGGBB) for empty areas. Transparent by default.

public string FillColor { get; set; }

Property Value

string

Layout

Gets or sets the layout type for arranging sources within the layer.

public LayoutType Layout { get; set; }

Property Value

LayoutType

Location

Gets or sets the layer position and size on the output canvas (left, top, right, bottom).

public Rect Location { get; set; }

Property Value

Rect

Opacity

Gets or sets the layer opacity from 0.0 (fully transparent) to 1.0 (fully opaque).

public float? Opacity { get; set; }

Property Value

float?

Rotation

Gets or sets the rotation angle in degrees. Negative values mirror the content horizontally.

public int? Rotation { get; set; }

Property Value

int?

Sources

Gets or sets list of source indices which should be shown on this layer. At least one source must be specified. If layout type is manual then only one source must be specified.

public List<int> Sources { get; set; }

Property Value

List<int>

Stretch

Gets or sets how the source content is stretched to fit the layer location.

public StretchType Stretch { get; set; }

Property Value

StretchType