Leadtools.Wia Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
StartVideoPreview Method
See Also 
Leadtools.Wia Namespace > WiaSession Class : StartVideoPreview Method



owner
Window handle where to display the streaming video preview.
stretchToFitParent

Specifies whether the video display is stretched to fit the parent window. Possible values are:

Value

Meaning

true Stretch the video preview to fit the parent window.
false Video is displayed in a supported resolution smaller than the parent window.
owner
Window handle where to display the streaming video preview.
stretchToFitParent

Specifies whether the video display is stretched to fit the parent window. Possible values are:

Value

Meaning

true Stretch the video preview to fit the parent window.
false Video is displayed in a supported resolution smaller than the parent window.
Starts the video preview inside the window handle specified through the owner parameter.

Syntax

Visual Basic (Declaration) 
Public Sub StartVideoPreview( _
   ByVal owner As IWin32Window, _
   ByVal stretchToFitParent As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As WiaSession
Dim owner As IWin32Window
Dim stretchToFitParent As Boolean
 
instance.StartVideoPreview(owner, stretchToFitParent)
C# 
public void StartVideoPreview( 
   IWin32Window owner,
   bool stretchToFitParent
)
C++/CLI 
public:
void StartVideoPreview( 
   IWin32Window owner,
   bool stretchToFitParent
) 

Parameters

owner
Window handle where to display the streaming video preview.
stretchToFitParent

Specifies whether the video display is stretched to fit the parent window. Possible values are:

Value

Meaning

true Stretch the video preview to fit the parent window.
false Video is displayed in a supported resolution smaller than the parent window.

Example

Remarks

This function will start the video stream preview in the window or the control specified through the owner parameter.

This function will internally set the image directory of the captured still images to the device’s default path unless you changed the destination images directory property yourself as mentioned in the WiaSession.AcquireImageFromVideo documentation.

Requirements

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

See Also