Skip to content

Frame overlay vs window overlay

The overlays can be applied over the video frames or over the display video window(s).

Over the video frames

The frame grabber must be enabled.

  • If the video frames are stretched, the overlays are stretched too.
  • If the video source is being recorded and RecordingInNativeFormat is disabled, the overlays are applied to the recording.

To apply the overlay over the video frames, set the "target display" property to -1 (the default value) by invoking SetTextOverlay_TargetDisplay (overlay index, -1) or SetImageOverlay_TargetDisplay (overlay index, -1).

Over the display video windows

  • The size of the overlays is fixed: the overlays are not stretched when the video frame or the video window is resized.
  • If 2 or more video windows are used for the same video stream (enabled by the DualDisplay... properties), the overlay can be applied to only one of the video windows.

To apply the overlay over all the video windows, set the "target display" property to -2 by invoking SetTextOverlay_TargetDisplay (overlay index, -2) or SetImageOverlay_TargetDisplay (overlay index, -2).

To apply the overlay over only one of the video windows, set the "target display" property to the index of the video window, in the 0..n-1 range, by invoking e.g. SetTextOverlay_TargetDisplay (overlay index, 0) or SetImageOverlay_TargetDisplay (overlay index, 1).

The video window indexes are assigned as follows:

  • the default video window ("Display_..." settings) corresponds to the index 0,
  • the 2nd video window ("DualDisplay_..." settings) corresponds to the index 1,
  • the 3rd video window corresponds to the index 2,
  • and so on.