LEADTOOLS WIA (Leadtools.Wia assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
AcquireImageFromVideo Method
See Also 
Leadtools.Wia Namespace > WiaSession Class : AcquireImageFromVideo Method



Extracts a still image from the video stream, and saves the image as a JPEG file.

Syntax

Visual Basic (Declaration) 
Public Function AcquireImageFromVideo() As String
Visual Basic (Usage)Copy Code
Dim instance As WiaSession
Dim value As String
 
value = instance.AcquireImageFromVideo()
C# 
public string AcquireImageFromVideo()
C++/CLI 
public:
String^ AcquireImageFromVideo(); 

Return Value

A System.String containing the full path and filename of the captured JPEG file from the camera device.

Example

Remarks

This method will capture a still image from the video stream and save it as a JPEG file.

To change the directory where the captured image is saved, set the new folder path in the value parameter and then call the WiaSession.SetPropertyString method, passing WiaPropertyId.VideoDeviceImagesDirectory for the propertyId parameter of this method.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also