|
Snapshot to BMP, JPEG, PNG, GIF, TIF file.
public void Snapshot(string filename,int iOutputImageType)
|
Parameter filename - the output image file name.
iOutputType - the output image type. 0 - BMP 1 - JPEG 2 - PNG 3 - GIF 4 - TIF
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(); _capture.Snapshot(c:\\temp\\test.bmp, 0);
|
|
|