BB FlashBack SDK: Base Classes |
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:
Set UseRegion to False.
To record a region of the desktop:
Set UseRegion to True.
Set RecordingRegionType to 1
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:
Set UseRegion to True
Set RecordingRegionType to 1
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
Use SetRecordRegion to set the size of the recording region. The size will not change during the recording, only its position on the desktop.
Set RecordingRegionType to 2
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:
Set UseRegion to True
Set RecordingRegionType to 2
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:
Set RecordingRegionType to 3
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.