LEADTOOLS WIA (Leadtools.Wia assembly)

ResizeVideoPreview Method

Show in webframe





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.
Resizes the video playback to the largest supported resolution that fits inside the parent window.
Syntax
public void ResizeVideoPreview( 
   bool stretchToFitParent
)
'Declaration
 
Public Sub ResizeVideoPreview( _
   ByVal stretchToFitParent As Boolean _
) 
'Usage
 
Dim instance As WiaSession
Dim stretchToFitParent As Boolean
 
instance.ResizeVideoPreview(stretchToFitParent)

            

            
public:
void ResizeVideoPreview( 
   bool stretchToFitParent
) 

Parameters

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

See Also

Reference

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

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.