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 VideoStreamRectSettingsInheritance
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
targetRectRect-
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
leftint-
The left coordinate of the target rectangle.
topint-
The top coordinate of the target rectangle.
rightint-
The right coordinate of the target rectangle.
bottomint-
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
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
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
xint-
The x-coordinate of the top-left corner.
yint-
The y-coordinate of the top-left corner.
widthint-
The width of the target rectangle.
heightint-
The height of the target rectangle.