Table of Contents

Class SceneItemTransform

Namespace
VisioForge.Core.SceneSwitching
Assembly
VisioForge.Core.dll

Defines the visual transform properties for a scene item. Used when adding a source to a scene to specify its position, size, and appearance.

public class SceneItemTransform

Inheritance

Inherited Members

Constructors

SceneItemTransform()

Initializes a new instance of the VisioForge.Core.SceneSwitching.SceneItemTransform class with default values.

public SceneItemTransform()

SceneItemTransform(Rect, uint, double)

Initializes a new instance of the VisioForge.Core.SceneSwitching.SceneItemTransform class with specified rectangle and z-order.

public SceneItemTransform(Rect rectangle, uint zOrder, double opacity = 1)

Parameters

rectangle Rect

The position and size rectangle.

zOrder uint

The z-order value.

opacity double

The opacity value. Default is 1.0.

Properties

KeepAspectRatio

Gets or sets a value indicating whether to maintain the source's aspect ratio when scaling.

public bool KeepAspectRatio { get; set; }

Property Value

bool

Opacity

Gets or sets the opacity. Range [0.0..1.0]. 0.0 = fully transparent, 1.0 = fully opaque.

public double Opacity { get; set; }

Property Value

double

Rectangle

Gets or sets the position and size rectangle within the compositor output. Uses the Rect convention: Left, Top = position; Right-Left = width; Bottom-Top = height.

public Rect Rectangle { get; set; }

Property Value

Rect

Visible

Gets or sets a value indicating whether the item is initially visible.

public bool Visible { get; set; }

Property Value

bool

ZOrder

Gets or sets the z-order (layer position). Higher values render on top.

public uint ZOrder { get; set; }

Property Value

uint