The LEADTOOLS C++ Class Library is a wrapper to the LEADTOOLS C API and provides only a subset of the features and functionality otherwise available in the LEADTOOLS C API. For more information about the full feature set of the LEADTOOLS C API, refer to LEADTOOLS C API Introduction.
Is this page helpful?
Starts the video preview.
#include "ltwrappr.h"
virtual L_INT LWia::StartVideoPreview(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. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This feature is available in LEADTOOLS version 16 or higher.
To specify the parent window or control where to start the video preview, call the LScanner::SetWindow function before calling [LWia:StartVideoPreview.
[LWia:StartVideoPreview starts the video stream preview in the window or control specified using the LScanner::SetWindow function.
[LWia:StartVideoPreview internally sets the image directory of the captured still images to the device's default path, unless you called LWia::SetPropertyString using the WIA_DPV_IMAGES_DIRECTORY property ID and the directory path to be used before calling the [LWia:StartVideoPreview function.
For an example, refer to LWia::IsVideoPreviewAvailable.