Viscomsoft .Net Video Capture SDK

ImageOverlay.Position Property

 

Get/Set the position of the image file.

VideoCapture.ImageOverlay.Position[=Point]

Parameter
the position of the image.

Namespace: Viscomsoft.VideoCapture

Remark
This property is Read/Write.

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();

  ImageOverlay overlay = new ImageOverlay();
  overlay.FileName ="c:\\yourfolder\\yourfile.png";
  overlay.Opacity =255;
  overlay.Position = new Point(100,200);
 _capture.VideoOverlay.AddOverlay(overlay);