#include "ltwrappr.h"

virtual L_INT LWia::StartVideoPreview(bStretchToFitParent)

L_BOOL bStretchToFitParent;

specifies whether the video display is stretched to fit the parent window

Starts the video preview. You can specify the parent window or control where to start the video preview by calling the LScanner::SetWindow function before calling this function.

Parameter Description
bStretchToFitParent 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.



The function was successful.

< 1

An error occurred. Refer to Return Codes.


This feature is available in LEADTOOLS version 16 or higher.

This function will start the video stream preview in the window or control specified using the LScanner::SetWindow function.

This function will internally set the image directory of the captured still images to the device's default path unless you called the LWia::SetPropertyString function using the WIA_DPV_IMAGES_DIRECTORY property ID and the directory path you wish to use before calling the LWia::StartVideoPreview function.

Required DLLs and Libraries


For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Help Version 20.0.2019.3.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS WIA C++ Class Library Help