Table of Contents

Enum LVCResizePolicy

Namespace
VisioForge.Core.LiveVideoCompositorV2
Assembly
VisioForge.Core.dll

Defines the resize policy options for video inputs in the Live Video Compositor.

public enum LVCResizePolicy

Fields

Letterbox = 0

Scales the video to fit within the target rectangle while maintaining the original aspect ratio. Black bars (letterboxing or pillarboxing) are added as needed to fill the remaining space.

This mode ensures the entire source video is visible without any cropping. If the aspect ratios of source and target don't match, black bars will appear either on the sides (pillarboxing) or top/bottom (letterboxing) of the video.

Stretch = 1

Stretches the video to completely fill the target rectangle, ignoring the original aspect ratio.

This mode may cause visual distortion if the source and target aspect ratios differ significantly. Use this mode when you need to fill the exact rectangle dimensions and aspect ratio preservation is not important.

LetterboxToFill = 2

Scales the video to fill the entire target rectangle while maintaining the original aspect ratio. Parts of the video may be cropped to achieve this.

This mode ensures no black bars appear, but may crop portions of the source video to maintain the aspect ratio. The video is centered in the target rectangle, with equal amounts cropped from opposite sides when necessary. Also known as "zoom to fill" or "crop to fit".

Remarks

This enumeration controls how video inputs are scaled and positioned within their designated rectangle in the compositor. Each policy offers different trade-offs between preserving aspect ratio and filling the available space.