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 SceneItemTransformInheritance
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
rectangleRect-
The position and size rectangle.
zOrderuint-
The z-order value.
opacitydouble-
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
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
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
Visible
Gets or sets a value indicating whether the item is initially visible.
public bool Visible { get; set; }Property Value
ZOrder
Gets or sets the z-order (layer position). Higher values render on top.
public uint ZOrder { get; set; }