Leadtools.Wia Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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 Sub AcquireImageFromVideo() 
Visual Basic (Usage)Copy Code
Dim instance As WiaSession
 
instance.AcquireImageFromVideo()
C# 
public void AcquireImageFromVideo()
C++/CLI 
public:
void AcquireImageFromVideo(); 

Example

Remarks

This method will capture a still image from the video stream and save it as a JPEG file. To determine where the image was saved use the TakenPictureFileName property.

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

Requirements

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

See Also