LWia::StartVideoPreview

Summary

Starts the video preview.

Syntax

#include "ltwrappr.h"

virtual L_INT LWia::StartVideoPreview(bStretchToFitParent)

Parameters

L_BOOL 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.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

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

See Also

Functions

Topics

Example

For an example, refer to LWia::IsVideoPreviewAvailable.

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

LEADTOOLS WIA C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.