Skip to content

Recording only a part of the screen

The recording can be limited to a part of the screen, by specifying the width and height to record at the x, y location.

To activate this feature, invoke ScreenRecordingUsingCoordinates before invoking StartPreview or StartRecording, e.g.:

VideoGrabber.VideoSource := vs_ScreenRecording;
VideoGrabber.ScreenRecordingUsingCoordinates (true, 10, 10, 300, 100);
VideoGrabber.StartPreview;

Remarks:

  • The scLeft and scTop location may be modified dynamically while previewing or recording.
  • The coordinates are given in the pixels of the application: with a display scaling above 100%, those of a DPI unaware or system DPI aware application are converted to the pixels of the monitor.
  • This feature is inactive if the recording of a window has been activated with SetWindowRecordingByName or SetWindowRecordingByHandle.