Skip to content

Multiple video windows

The Display_... and DualDisplay_... features allow to control 2 video windows for the same source (e.g. a preview control embedded in the application, and a 2nd full screen window on another monitor)

It is possible to use more than 2 video windows by invoking directly the SetDisplay... functions, and by passing the index of the window, in the 2..8 range (0 and 1 are reserved respectively to the Display... and DualDisplay... properties)

Use the following sample code for 1 embedded preview (enabled by default, corresponding to the "Display... properties") and additional 2 full screen monitors:

Videograbber.SetDisplayActive (2, true);

Videograbber.SetDisplayActive (3, true);

Videograbber.StartPreview();

Videograbber.SetDisplayMonitor (2, 1);

Videograbber.SetDisplayMonitor (3, 2);

Videograbber.SetDisplayFullScreen (2, true);

Videograbber.SetDisplayFullScreen (3, true);

The functions related to the multiple windows are:

SetDisplayActive

SetDisplayAlphaBlendEnabled

SetDisplayAlphaBlendValue

SetDisplayAssociatedRenderer

SetDisplayAutoSize

SetDisplayAspectRatio

SetDisplayEmbedded

SetDisplayFullScreen

SetDisplayMonitor

SetDisplayMouseMovesWindow

SetDisplayPanScanRatio

SetDisplayParent

SetDisplayStayOnTop

SetDisplayTransparentColorEnabled

SetDisplayTransparentColorValue

SetDisplayVideoPortEnabled

SetDisplayVisible

SetDisplayLeft

SetDisplayTop

SetDisplayWidth

SetDisplayHeight

SetDisplayLocation