LWia::ResizeVideoPreview

Summary

Resizes the video playback to the largest supported resolution that fits inside the parent window. Specify the parent window or control by calling the LScanner::SetWindow function.

Syntax

#include "ltwrappr.h"

virtual L_INT LWia::ResizeVideoPreview(bStretchToFitParent)

Parameters

L_BOOL bStretchToFitParent

Specifies whether to stretch the video display to fit the parent window.  Possible values are:

Value Meaning
TRUE Stretch the video preview to fit the parent window.
FALSE Display the video in a supported resolution that is 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.

[LWia:ResizeVideoPreview resizes the video playback to the largest supported resolution that fits inside the parent window. Call [LWia:ResizeVideoPreview whenever the parent window is moved or resized.

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.