#include "ltwrappr.h"
virtual L_INT LWia::StartVideoPreview(bStretchToFitParent)
Starts the 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. |
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.
Required DLLs and Libraries
For an example, refer to LWia::IsVideoPreviewAvailable.