Related products: Video Capture SDK .Net

Screen capture in Video Capture SDK .Net

You can download sample project from GitHub.

You can record both the entire screen and a certain area of it.

1. Create parameters class object and set screen as a source.

ScreenCaptureSourceSettings settings = new ScreenCaptureSourceSettings(); 
settings.Mode = VFScreenCaptureMode.Screen;

2. Set area coordinates:

settings.FullScreen = false;

settings.Top = 0;
settings.Bottom = 1080;
settings.Left = 0;
settings.Right = 1920;

or record entire screen:

settings.FullScreen = true;

3. Set frame rate

settings.FrameRate = 25;

4. Capture mouse cursor

settings.GrabMouseCursor = true;

5. Apply screen capture settings

VideoCapture1.Screen_Capture_Source = screenSource;

6. Set preview mode

VideoCapture1.Mode = VFVideoCaptureMode.ScreenPreview;

or set capture mode, set default MP4 output settings

VideoCapture1.Mode = VFVideoCaptureMode.ScreenCapture;
VideoCapture1.Output_Format = new VFMP4v8v10Output();
VideoCapture1.Output_Filename = edOutput.Text;

7. Start.

VideoCapture1.Start();

VisioForge © 2006-2019

  • GitHub-Mark-64px
  • Twitter Социальные Иконка
  • VisioForge Facebook page
  • YouTube channel