LEADTOOLS WIA (Leadtools.Wia assembly)
LEAD Technologies, Inc

StartVideoPreview Method






Window handle where to display the streaming video preview.

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
public void StartVideoPreview( 
   IWin32Window owner,
   bool stretchToFitParent
)
'Declaration
 
Public Sub StartVideoPreview( _
   ByVal owner As IWin32Window, _
   ByVal stretchToFitParent As Boolean _
) 
'Usage
 
Dim instance As WiaSession
Dim owner As IWin32Window
Dim stretchToFitParent As Boolean
 
instance.StartVideoPreview(owner, stretchToFitParent)
public void StartVideoPreview( 
   IWin32Window owner,
   bool stretchToFitParent
)
 function Leadtools.Wia.WiaSession.StartVideoPreview( 
   owner ,
   stretchToFitParent 
)
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.
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.

Example
Refer to WiaSession.IsVideoPreviewAvailable.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WiaSession Class
WiaSession Members
Startup Method
Shutdown Method
SelectDevice Method
SelectDeviceDlg Method
IsVideoPreviewAvailable Method
ResizeVideoPreview Method
AcquireImageFromVideo Method
EndVideoPreview Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.