Viscomsoft .Net Video Capture SDK

VideoOverlay.ClearScreen method

 

Clear all overlay texts or all overlay images on screen.

VideoCapture.VideoOverlay.ClearScreen()

No Parameter

Namespace: Viscomsoft.VideoCapture

No Return value.

Example

   

[c# Syntax] 
  public VideoCapture _capture =  new VideoCapture();
  public Devices _devices = new Devices();
 
  _capture.Initialize();
  _devices.Refresh();
  _capture.Window = pictureBox1.Handle;
  _capture.Mode = VideoCapture.CaptureMode.Preview;
  _capture.VideoDevice = _devices.VideoDevices[0];
  _capture.VideoDevice.SelectedResolution = _capture.VideoDevice.VideoResolutions[0];
 _capture.AudioDevice = _devices.AudioDevices[0];
  int result= _capture.Start();

 TextOverlay overlay = new TextOverlay();
 overlay.Text = "Hello 1234567890";
 overlay.Position = new Point(100, 100);
 overlay.FontName = "Arial";
 overlay.FontSize = 38;
 overlay.Opacity = 255;
 overlay.ForegroundColor = Color.Red;
 overlay.BackgroundColor = Color.Yellow;
 _capture.VideoOverlay.AddOverlay(overlay);

 

  _capture.VideoOverlay.ClearScreen();