BB FlashBack SDK: Base Classes

Recording Windows and Regions

BB FlashBack SDK can record the entire desktop, selected monitors, a particular region of it, a single window or multiple windows.

Note: capture driver record mode can only record the primary monitor

 

To record the entire desktop:

  1. Set UseRegion to False.

 

To record a region of the desktop:

  1. Set UseRegion to True.

  2. Set RecordingRegionType to 1

  3. Define the region with the SetRecordRegion method.

    Or, set the RegionHeight, RegionWidth, RegionX, RegionY properties to define the region you want to record.
     

The movie produced will be the size of the specified region. The correct monitor (or monitors if the region spans multiple monitors) will be automatically selected.

 

To record a single window:

  1. Set UseRegion to True

  2. Set RecordingRegionType to 1

  3. Call RegionFromHWND, passing the handle of the window you want to record.

The movie produced will be sized to the dimensions of the selected window. The correct monitor (or monitors if the window spans multiple monitors) will be automatically selected. The recording region defined in this way is static - it will not follow the window if it is moved or resized.

 

To record a single window and 'follow' it if the window moves

  1. Use SetRecordRegion to set the size of the recording region. The size will not change during the recording, only its position on the desktop.

  2. Set RecordingRegionType to 2

  3. Use AddWndToList to add the window handle of the window you want to record

The recording will display the selected window.

 

To record multiple windows:

  1. Set UseRegion to True

  2. Set RecordingRegionType to 2

  3. Use AddWndToList, passing the handles of the windows you want to record.

The movie produced will be the size of the desktop, but all areas outside of the specified windows will be blacked out.

 

To record multiple windows all belonging to one process:

  1. Set RecordingRegionType to 3

  2. Call SetProcessId, passing the Id of the process you want to record.

The movie produced will be the size of the desktop, but all areas outside of the windows owned by the specified process will be blacked out.