vippip
Open this model

# Picture in Picture

This demo uses the Compositing and Resize blocks to achieve a picture-in-picture (PIP) effect.

## Contents

- Demo Model
- Picture in Picture Results
- Available Demo Versions

## Demo Model

The following figure shows the Picture in Picture demo model:

## Picture in Picture Results

You can use the Control block to specify which video channel (1, 2 or 3) is the main channel and which is the PIP channel. The demo overlays the PIP channel onto the main channel. You can specify the location of the PIP window using the Location of PIP window parameter. Your choices are Upper left, Upper right, Lower left, or Lower right.

The demo uses the Resize block to reduce the size of the PIP channel by 50%. That way, the PIP window covers only a portion of the main channel. When you change the PIP channel number parameter, the demo can either slide or fade the new PIP window onto the main channel. You can specify the sliding or fading effect by adjusting the Switch blocks.

## Available Demo Versions

Windows® only: vippip_win.mdl

Platform independent: vippip_all.mdl

Windows-only demo models might contain compressed multimedia files or To Video Display blocks, both of which are only supported on Windows platforms. The To Video Display block supports code generation, and its performance is optimized for Windows.