Table of Contents

Class VideoStreamRectSettings

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

Settings for drawing the video stream into a target rectangle. The video is resized and positioned to fit within the specified rectangle.

public class VideoStreamRectSettings

Inheritance

Inherited Members

Constructors

VideoStreamRectSettings()

Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.VideoStreamRectSettings class.

public VideoStreamRectSettings()

VideoStreamRectSettings(Rect)

Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.VideoStreamRectSettings class with specified rectangle.

public VideoStreamRectSettings(Rect targetRect)

Parameters

targetRect Rect

The target rectangle where the video will be drawn.

VideoStreamRectSettings(int, int, int, int)

Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.VideoStreamRectSettings class with specified coordinates.

public VideoStreamRectSettings(int left, int top, int right, int bottom)

Parameters

left int

The left coordinate of the target rectangle.

top int

The top coordinate of the target rectangle.

right int

The right coordinate of the target rectangle.

bottom int

The bottom coordinate of the target rectangle.

Properties

Enabled

Gets or sets a value indicating whether the rect transformation is enabled.

public bool Enabled { get; set; }

Property Value

bool

TargetRect

Gets or sets the target rectangle where the video will be drawn. The video will be scaled and positioned to fit within this rectangle.

public Rect TargetRect { get; set; }

Property Value

Rect

Methods

FromPositionAndSize(int, int, int, int)

Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.VideoStreamRectSettings class with specified position and size.

public static VideoStreamRectSettings FromPositionAndSize(int x, int y, int width, int height)

Parameters

x int

The x-coordinate of the top-left corner.

y int

The y-coordinate of the top-left corner.

width int

The width of the target rectangle.

height int

The height of the target rectangle.

Returns

VideoStreamRectSettings