Visual Basic (Declaration) | |
---|---|
Public Sub AcquireImageFromVideo() |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public void AcquireImageFromVideo() |
C++/CLI | |
---|---|
public: void AcquireImageFromVideo(); |
Refer to WiaSession.IsVideoPreviewAvailable.
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.
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family