Skip to content

Mixer_SetupPIPFromSource

function

Delphi
function Mixer_SetupPIPFromSource (SourceUniqueID: LongInt; Source_Left: LongInt; Source_Top: LongInt; Source_Width: LongInt; Source_Height: LongInt; ActivatePIP: Boolean; PIP_Left: LongInt; PIP_Top: LongInt; PIP_Width: LongInt; PIP_Height: LongInt; MoveToTop: Boolean): LongInt;
C++Builder
System::LongInt __fastcall Mixer_SetupPIPFromSource(System::LongInt SourceUniqueID, System::LongInt Source_Left, System::LongInt Source_Top, System::LongInt Source_Width, System::LongInt Source_Height, bool ActivatePIP, System::LongInt PIP_Left, System::LongInt PIP_Top, System::LongInt PIP_Width, System::LongInt PIP_Height, bool MoveToTop);
C#
public int Mixer_SetupPIPFromSource(int SourceUniqueID, int Source_Left, int Source_Top, int Source_Width, int Source_Height, bool ActivatePIP, int PIP_Left, int PIP_Top, int PIP_Width, int PIP_Height, bool MoveToTop);
VB.NET
Public Function Mixer_SetupPIPFromSource(SourceUniqueID As Integer, Source_Left As Integer, Source_Top As Integer, Source_Width As Integer, Source_Height As Integer, ActivatePIP As Boolean, PIP_Left As Integer, PIP_Top As Integer, PIP_Width As Integer, PIP_Height As Integer, MoveToTop As Boolean) As Integer
C++/Qt
int Mixer_SetupPIPFromSource (int SourceUniqueID, int Source_Left, int Source_Top, int Source_Width, int Source_Height, BOOL ActivatePIP, int PIP_Left, int PIP_Top, int PIP_Width, int PIP_Height, BOOL MoveToTop);

Sets up a TVideoGrabber component to receive the whole video frames (or a cropped part of these video frames) from another TVideoGrabber component, and to display them in PIP mode (Picture In Picture), at any location or size in the destination video frame.

The Source_... parameters specify the rectangle of the source video frame that is displayed in the destination video frame: 0, 0, 0, 0 sends the whole source video frame. The PIP_... parameters specify the rectangle of the destination video frame where the source is displayed in PIP mode.

  • SourceUniqueID: the UniqueID property of the TVideoGrabber component that must send the video frames.

  • Source_Left: left location in the source video frame.

  • Source_Top: top location in the source video frame.

  • Source_Width: width of the source rectangle (set to 0 to let TVideoGrabber automatically use the full width of the source video frame).

  • Source_Height: height of the source rectangle (set to 0 to let TVideoGrabber automatically use the full height of the source video frame).

  • ActivatePIP: specifies whether the PIP display must be activated.

  • PIP_Left: left location of the PIP on the destination video frame.

  • PIP_Top: top location of the PIP on the destination video frame.

  • PIP_Width: width of the PIP on the destination video frame.

  • PIP_Height: height of the PIP on the destination video frame.

  • MoveToTop: set it to true if several PIPs partially overlap and this one must appear above the others.

Return value: identifier of the mixer relation. This value is required e.g. by Mixer_Activation to activate or deactivate this PIP on the fly.