Skip to content

Mixer_SetupPIPFromSource

method

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);

Used to make a PIP (Picture In Picture) between 2 TVideoGrabber components. This function setups a TVideoGrabber component to receive the whole video frames (or a cropped part of these video frames) from another TVideoGrabber component, and to display it in "PIP" mode (Picture In Picture), at any location or size in the destination video frame.

Parameters:

  • the "Source_..." parameters specify a "rectangle part" of the source video frame that will be displayed in the destination video frame. Specifying 0, 0, 0, 0 means you send the whole source video frame. - the "PIP_..." parameters specify a "rectangle part" of the destination video frame where the source will be displayed in "PIP" mode.

SourceUniqueID: LongInt specifies the UniqueID property of the TVideoGrabber component that must send the video frams

Source_Left: LongIntLeft location in the source video frame

Source_Top: LongIntTop location in the source video frame

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

Source_Height: LongIntHeight of the source rectangle (set 0 to let TVideoGrabber use automatically the full width of the source video frame)

ActivatePIP: BooleanSpecifies if the PIP display must be activated or not

PIP_Left: LongIntLeft location of the PIP on the destination video frame

PIP_Top: LongIntTop location of the PIP on the destination video frame

PIP_Width: LongIntWidth of the PIP on the destination video frame

PIP_Height: LongIntHeight of the PIP on the destination video frame

MoveToTop: BooleanMust be set to true if several PIP are partially overlapped and this one should appear above the others

RETURN VALUE: LongIntIdentifier of the mixer relation, this value is required e.g. by Mixer_Activation to activate/deativate this PIP on the fly.